aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 5f450831e5f0..3af4628d7dd1 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -3878,7 +3878,7 @@ enum {
3878 TP_ACPI_BLUETOOTH_HWPRESENT = 0x01, /* Bluetooth hw available */ 3878 TP_ACPI_BLUETOOTH_HWPRESENT = 0x01, /* Bluetooth hw available */
3879 TP_ACPI_BLUETOOTH_RADIOSSW = 0x02, /* Bluetooth radio enabled */ 3879 TP_ACPI_BLUETOOTH_RADIOSSW = 0x02, /* Bluetooth radio enabled */
3880 TP_ACPI_BLUETOOTH_RESUMECTRL = 0x04, /* Bluetooth state at resume: 3880 TP_ACPI_BLUETOOTH_RESUMECTRL = 0x04, /* Bluetooth state at resume:
3881 off / last state */ 3881 0 = disable, 1 = enable */
3882}; 3882};
3883 3883
3884enum { 3884enum {
@@ -3924,10 +3924,11 @@ static int bluetooth_set_status(enum tpacpi_rfkill_state state)
3924 } 3924 }
3925#endif 3925#endif
3926 3926
3927 /* We make sure to keep TP_ACPI_BLUETOOTH_RESUMECTRL off */
3928 status = TP_ACPI_BLUETOOTH_RESUMECTRL;
3929 if (state == TPACPI_RFK_RADIO_ON) 3927 if (state == TPACPI_RFK_RADIO_ON)
3930 status |= TP_ACPI_BLUETOOTH_RADIOSSW; 3928 status = TP_ACPI_BLUETOOTH_RADIOSSW
3929 | TP_ACPI_BLUETOOTH_RESUMECTRL;
3930 else
3931 status = 0;
3931 3932
3932 if (!acpi_evalf(hkey_handle, NULL, "SBDC", "vd", status)) 3933 if (!acpi_evalf(hkey_handle, NULL, "SBDC", "vd", status))
3933 return -EIO; 3934 return -EIO;
@@ -4078,7 +4079,7 @@ enum {
4078 TP_ACPI_WANCARD_HWPRESENT = 0x01, /* Wan hw available */ 4079 TP_ACPI_WANCARD_HWPRESENT = 0x01, /* Wan hw available */
4079 TP_ACPI_WANCARD_RADIOSSW = 0x02, /* Wan radio enabled */ 4080 TP_ACPI_WANCARD_RADIOSSW = 0x02, /* Wan radio enabled */
4080 TP_ACPI_WANCARD_RESUMECTRL = 0x04, /* Wan state at resume: 4081 TP_ACPI_WANCARD_RESUMECTRL = 0x04, /* Wan state at resume:
4081 off / last state */ 4082 0 = disable, 1 = enable */
4082}; 4083};
4083 4084
4084#define TPACPI_RFK_WWAN_SW_NAME "tpacpi_wwan_sw" 4085#define TPACPI_RFK_WWAN_SW_NAME "tpacpi_wwan_sw"
@@ -4115,10 +4116,11 @@ static int wan_set_status(enum tpacpi_rfkill_state state)
4115 } 4116 }
4116#endif 4117#endif
4117 4118
4118 /* We make sure to set TP_ACPI_WANCARD_RESUMECTRL */
4119 status = TP_ACPI_WANCARD_RESUMECTRL;
4120 if (state == TPACPI_RFK_RADIO_ON) 4119 if (state == TPACPI_RFK_RADIO_ON)
4121 status |= TP_ACPI_WANCARD_RADIOSSW; 4120 status = TP_ACPI_WANCARD_RADIOSSW
4121 | TP_ACPI_WANCARD_RESUMECTRL;
4122 else
4123 status = 0;
4122 4124
4123 if (!acpi_evalf(hkey_handle, NULL, "SWAN", "vd", status)) 4125 if (!acpi_evalf(hkey_handle, NULL, "SWAN", "vd", status))
4124 return -EIO; 4126 return -EIO;