diff options
-rw-r--r-- | Documentation/laptops/thinkpad-acpi.txt | 2 | ||||
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/laptops/thinkpad-acpi.txt b/Documentation/laptops/thinkpad-acpi.txt index ab4b58eaa7f4..6d03487ef1c7 100644 --- a/Documentation/laptops/thinkpad-acpi.txt +++ b/Documentation/laptops/thinkpad-acpi.txt | |||
@@ -219,7 +219,7 @@ The following commands can be written to the /proc/acpi/ibm/hotkey file: | |||
219 | echo 0xffffffff > /proc/acpi/ibm/hotkey -- enable all hot keys | 219 | echo 0xffffffff > /proc/acpi/ibm/hotkey -- enable all hot keys |
220 | echo 0 > /proc/acpi/ibm/hotkey -- disable all possible hot keys | 220 | echo 0 > /proc/acpi/ibm/hotkey -- disable all possible hot keys |
221 | ... any other 8-hex-digit mask ... | 221 | ... any other 8-hex-digit mask ... |
222 | echo reset > /proc/acpi/ibm/hotkey -- restore the original mask | 222 | echo reset > /proc/acpi/ibm/hotkey -- restore the recommended mask |
223 | 223 | ||
224 | The following commands have been deprecated and will cause the kernel | 224 | The following commands have been deprecated and will cause the kernel |
225 | to log a warning: | 225 | to log a warning: |
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 6b667891fc3b..dd779e54894f 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -3569,7 +3569,8 @@ static int hotkey_write(char *buf) | |||
3569 | hotkey_enabledisable_warn(0); | 3569 | hotkey_enabledisable_warn(0); |
3570 | res = -EPERM; | 3570 | res = -EPERM; |
3571 | } else if (strlencmp(cmd, "reset") == 0) { | 3571 | } else if (strlencmp(cmd, "reset") == 0) { |
3572 | mask = hotkey_orig_mask; | 3572 | mask = (hotkey_all_mask | hotkey_source_mask) |
3573 | & ~hotkey_reserved_mask; | ||
3573 | } else if (sscanf(cmd, "0x%x", &mask) == 1) { | 3574 | } else if (sscanf(cmd, "0x%x", &mask) == 1) { |
3574 | /* mask set */ | 3575 | /* mask set */ |
3575 | } else if (sscanf(cmd, "%x", &mask) == 1) { | 3576 | } else if (sscanf(cmd, "%x", &mask) == 1) { |