ACPI / blacklist: add _REV quirk for Dell Inspiron 7537
authorKai Heng Feng <kai.heng.feng@canonical.com>
Wed, 12 Apr 2017 08:12:45 +0000 (16:12 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Apr 2017 00:35:54 +0000 (02:35 +0200)
The battery can only be detected after AC power adapter event.

Adding the machine to acpi_rev_dmi_table[] can work around this
issue.

Link: https://bugs.launchpad.net/bugs/1678590
Link: https://bugzilla.kernel.org/show_bug.cgi?id=105721
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/blacklist.c

index 4421f7c9981c7c5aa950893273a9d93dfc353bb4..bb542acc05749cde9c95082144a3f104b8773330 100644 (file)
@@ -188,6 +188,14 @@ static struct dmi_system_id acpi_rev_dmi_table[] __initdata = {
                      DMI_MATCH(DMI_PRODUCT_NAME, "Latitude 3350"),
                },
        },
+       {
+        .callback = dmi_enable_rev_override,
+        .ident = "DELL Inspiron 7537",
+        .matches = {
+                     DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+                     DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7537"),
+               },
+       },
 #endif
        {}
 };