ACPI: button: Add DMI quirk for Asus T200TA
[sfrench/cifs-2.6.git] / drivers / acpi / button.c
index e4b2aa43265bf37ec187299bb7dd62424f93e342..a090e9542d82d90a2b0704c405e564ca6b193904 100644 (file)
@@ -77,6 +77,18 @@ MODULE_DEVICE_TABLE(acpi, button_device_ids);
 
 /* Please keep this list sorted alphabetically by vendor and model */
 static const struct dmi_system_id dmi_lid_quirks[] = {
+       {
+               /*
+                * Asus T200TA, _LID keeps reporting closed after every second
+                * openening of the lid. Causing immediate re-suspend after
+                * opening every other open. Using LID_INIT_OPEN fixes this.
+                */
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "T200TA"),
+               },
+               .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
+       },
        {
                /* GP-electronic T701, _LID method points to a floating GPIO */
                .matches = {