diff options
author | Seth Forshee <seth.forshee@canonical.com> | 2012-01-18 14:44:11 -0500 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2012-03-22 09:31:53 -0400 |
commit | f11f999e989061952f1a27bd0c49645a46d13173 (patch) | |
tree | 2e351b98cd900601b45c77af23740834f148703f /drivers/platform/x86/toshiba_acpi.c | |
parent | af502837a08c8ca3495d3940d4c4eb4e19a3beaa (diff) |
toshiba_acpi: Refuse to load on machines with buggy INFO implementations
Several Satellite models have a buggy implementation of the INFO method
that causes ACPI exceptions when executed:
ACPI Error: Result stack is empty! State=ffff88012d70f800 (20110413/dswstate-98)
ACPI Exception: AE_AML_NO_RETURN_VALUE, Missing or null operand (20110413/dsutils-646)
ACPI Exception: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20110413/dsutils-763)
ACPI Error: Method parse/execution failed [\_SB_.VALZ.GETE] (Node ffff880131175eb0), AE_AML_NO_RETURN_VALUE (20110413/psparse-536)
ACPI Error: Method parse/execution failed [\_SB_.VALZ.INFO] (Node ffff880131175ed8), AE_AML_NO_RETURN_VALUE (20110413/psparse-536)
toshiba_acpi: ACPI INFO method execution failed
toshiba_acpi: Failed to query hotkey event
All known machines with this implementation also have a WMI interface
with event GUID 59142400-C6A3-40FA-BADB-8A2652834100 which is not seen
on any other models. Refuse to load toshiba_acpi on machines with this
guid.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/toshiba_acpi.c')
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index e3e1fa6db004..ee79ce64d9df 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c | |||
@@ -63,6 +63,8 @@ MODULE_AUTHOR("John Belmonte"); | |||
63 | MODULE_DESCRIPTION("Toshiba Laptop ACPI Extras Driver"); | 63 | MODULE_DESCRIPTION("Toshiba Laptop ACPI Extras Driver"); |
64 | MODULE_LICENSE("GPL"); | 64 | MODULE_LICENSE("GPL"); |
65 | 65 | ||
66 | #define TOSHIBA_WMI_EVENT_GUID "59142400-C6A3-40FA-BADB-8A2652834100" | ||
67 | |||
66 | /* Scan code for Fn key on TOS1900 models */ | 68 | /* Scan code for Fn key on TOS1900 models */ |
67 | #define TOS1900_FN_SCAN 0x6e | 69 | #define TOS1900_FN_SCAN 0x6e |
68 | 70 | ||
@@ -1249,6 +1251,14 @@ static int __init toshiba_acpi_init(void) | |||
1249 | { | 1251 | { |
1250 | int ret; | 1252 | int ret; |
1251 | 1253 | ||
1254 | /* | ||
1255 | * Machines with this WMI guid aren't supported due to bugs in | ||
1256 | * their AML. This check relies on wmi initializing before | ||
1257 | * toshiba_acpi to guarantee guids have been identified. | ||
1258 | */ | ||
1259 | if (wmi_has_guid(TOSHIBA_WMI_EVENT_GUID)) | ||
1260 | return -ENODEV; | ||
1261 | |||
1252 | toshiba_proc_dir = proc_mkdir(PROC_TOSHIBA, acpi_root_dir); | 1262 | toshiba_proc_dir = proc_mkdir(PROC_TOSHIBA, acpi_root_dir); |
1253 | if (!toshiba_proc_dir) { | 1263 | if (!toshiba_proc_dir) { |
1254 | pr_err("Unable to create proc dir " PROC_TOSHIBA "\n"); | 1264 | pr_err("Unable to create proc dir " PROC_TOSHIBA "\n"); |