Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185080
b: refs/heads/master
c: 08fedfc
h: refs/heads/master
v: v3
  • Loading branch information
Henrique de Moraes Holschuh committed Feb 26, 2010
1 parent c0f1b4b commit 84a3126
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f0cf712a74fcc3ad21f0bde95bd32c2f2cc3888
refs/heads/master: 08fedfc903c78e380b0baa7b57c52d367794d0a5
18 changes: 10 additions & 8 deletions trunk/drivers/platform/x86/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3878,7 +3878,7 @@ enum {
TP_ACPI_BLUETOOTH_HWPRESENT = 0x01, /* Bluetooth hw available */
TP_ACPI_BLUETOOTH_RADIOSSW = 0x02, /* Bluetooth radio enabled */
TP_ACPI_BLUETOOTH_RESUMECTRL = 0x04, /* Bluetooth state at resume:
off / last state */
0 = disable, 1 = enable */
};

enum {
Expand Down Expand Up @@ -3924,10 +3924,11 @@ static int bluetooth_set_status(enum tpacpi_rfkill_state state)
}
#endif

/* We make sure to keep TP_ACPI_BLUETOOTH_RESUMECTRL off */
status = TP_ACPI_BLUETOOTH_RESUMECTRL;
if (state == TPACPI_RFK_RADIO_ON)
status |= TP_ACPI_BLUETOOTH_RADIOSSW;
status = TP_ACPI_BLUETOOTH_RADIOSSW
| TP_ACPI_BLUETOOTH_RESUMECTRL;
else
status = 0;

if (!acpi_evalf(hkey_handle, NULL, "SBDC", "vd", status))
return -EIO;
Expand Down Expand Up @@ -4078,7 +4079,7 @@ enum {
TP_ACPI_WANCARD_HWPRESENT = 0x01, /* Wan hw available */
TP_ACPI_WANCARD_RADIOSSW = 0x02, /* Wan radio enabled */
TP_ACPI_WANCARD_RESUMECTRL = 0x04, /* Wan state at resume:
off / last state */
0 = disable, 1 = enable */
};

#define TPACPI_RFK_WWAN_SW_NAME "tpacpi_wwan_sw"
Expand Down Expand Up @@ -4115,10 +4116,11 @@ static int wan_set_status(enum tpacpi_rfkill_state state)
}
#endif

/* We make sure to set TP_ACPI_WANCARD_RESUMECTRL */
status = TP_ACPI_WANCARD_RESUMECTRL;
if (state == TPACPI_RFK_RADIO_ON)
status |= TP_ACPI_WANCARD_RADIOSSW;
status = TP_ACPI_WANCARD_RADIOSSW
| TP_ACPI_WANCARD_RESUMECTRL;
else
status = 0;

if (!acpi_evalf(hkey_handle, NULL, "SWAN", "vd", status))
return -EIO;
Expand Down

0 comments on commit 84a3126

Please sign in to comment.