]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ACPI: EC: add another DMI check for ASUS hardware
authorPeter Collingbourne <peter@pcc.me.uk>
Sun, 24 Apr 2011 21:09:32 +0000 (22:09 +0100)
committerLen Brown <len.brown@intel.com>
Mon, 25 Apr 2011 20:54:15 +0000 (16:54 -0400)
Commit 0adf3c746a73684b3f8c2821a584e1db998f61e9 introduced a regression
by making the ECDT validation test for ASUS hardware more restrictive.
The previous test used the dmi_name_in_vendors function which searches
a number of DMI fields, while the new test checked only the BIOS
vendor, which is known to not match on an ASUS F5GL laptop which
requires ECDT validation.

Add a rule to ec_dmi_table based on an alternative DMI pattern for
ASUS hardware as found elsewhere in the kernel.

Signed-off-by: Peter Collingbourne <peter@pcc.me.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ec.c

index fa848c4116a84b3572f0142ccb3d87df8dff2ada..30ca71791bf2ad2bda6b478e6d6615525c89a319 100644 (file)
@@ -940,6 +940,9 @@ static struct dmi_system_id __initdata ec_dmi_table[] = {
        {
        ec_validate_ecdt, "ASUS hardware", {
        DMI_MATCH(DMI_BIOS_VENDOR, "ASUS") }, NULL},
+       {
+       ec_validate_ecdt, "ASUS hardware", {
+       DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer Inc.") }, NULL},
        {},
 };