diff options
author | Feng Tang <feng.tang@intel.com> | 2012-09-28 03:22:01 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-10-06 14:57:33 -0400 |
commit | 67bfa9b60bd689601554526d144b21d529f78a09 (patch) | |
tree | f3a149c295ebfd18469c019e3d39cbac3d252e8a | |
parent | a520d52e99b14ba7db135e916348f12f2a6e09be (diff) |
ACPI: EC: Add a quirk for CLEVO M720T/M730T laptop
By enlarging the GPE storm threshold back to 20, that laptop's
EC works fine with interrupt mode instead of polling mode.
https://bugzilla.kernel.org/show_bug.cgi?id=45151
Reported-and-Tested-by: Francesco <trentini@dei.unipd.it>
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
cc: stable@vger.kernel.org
-rw-r--r-- | drivers/acpi/ec.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 615264c89c31..a51df9681319 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -930,6 +930,17 @@ static int ec_flag_msi(const struct dmi_system_id *id) | |||
930 | return 0; | 930 | return 0; |
931 | } | 931 | } |
932 | 932 | ||
933 | /* | ||
934 | * Clevo M720 notebook actually works ok with IRQ mode, if we lifted | ||
935 | * the GPE storm threshold back to 20 | ||
936 | */ | ||
937 | static int ec_enlarge_storm_threshold(const struct dmi_system_id *id) | ||
938 | { | ||
939 | pr_debug("Setting the EC GPE storm threshold to 20\n"); | ||
940 | ec_storm_threshold = 20; | ||
941 | return 0; | ||
942 | } | ||
943 | |||
933 | static struct dmi_system_id __initdata ec_dmi_table[] = { | 944 | static struct dmi_system_id __initdata ec_dmi_table[] = { |
934 | { | 945 | { |
935 | ec_skip_dsdt_scan, "Compal JFL92", { | 946 | ec_skip_dsdt_scan, "Compal JFL92", { |
@@ -961,10 +972,13 @@ static struct dmi_system_id __initdata ec_dmi_table[] = { | |||
961 | { | 972 | { |
962 | ec_validate_ecdt, "ASUS hardware", { | 973 | ec_validate_ecdt, "ASUS hardware", { |
963 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer Inc.") }, NULL}, | 974 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer Inc.") }, NULL}, |
975 | { | ||
976 | ec_enlarge_storm_threshold, "CLEVO hardware", { | ||
977 | DMI_MATCH(DMI_SYS_VENDOR, "CLEVO Co."), | ||
978 | DMI_MATCH(DMI_PRODUCT_NAME, "M720T/M730T"),}, NULL}, | ||
964 | {}, | 979 | {}, |
965 | }; | 980 | }; |
966 | 981 | ||
967 | |||
968 | int __init acpi_ec_ecdt_probe(void) | 982 | int __init acpi_ec_ecdt_probe(void) |
969 | { | 983 | { |
970 | acpi_status status; | 984 | acpi_status status; |