power: supply: axp288_fuel_gauge: Add Minix Neo Z83-4 to the blacklist
authorHans de Goede <hdegoede@redhat.com>
Sun, 25 Aug 2019 15:41:52 +0000 (17:41 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 1 Sep 2019 19:44:15 +0000 (21:44 +0200)
The Minix Neo Z83-4 is another mini PC using the AXP288 PMIC where the
EFI code does not disable the charger part of the PMIC causing us to report
battery readings (of always 100%) to userspace even though there is no
battery in this wall-outlet powered device.

Add it to the blacklist to avoid the bogus battery status reporting.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp288_fuel_gauge.c

index 6db2e86..e1bc4e6 100644 (file)
@@ -726,6 +726,13 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
                        DMI_MATCH(DMI_BOARD_VERSION, "V1.1"),
                },
        },
+       {
+               /* Minix Neo Z83-4 mini PC */
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "MINIX"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "Z83-4"),
+               }
+       },
        {}
 };