From: Hans de Goede Date: Sun, 25 Aug 2019 15:41:52 +0000 (+0200) Subject: power: supply: axp288_fuel_gauge: Add Minix Neo Z83-4 to the blacklist X-Git-Tag: v5.15~5445^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa7da7449eb3172e9ef56ae69a1db237cb26c8df;p=platform%2Fkernel%2Flinux-starfive.git power: supply: axp288_fuel_gauge: Add Minix Neo Z83-4 to the blacklist 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 Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c index 6db2e86..e1bc4e6 100644 --- a/drivers/power/supply/axp288_fuel_gauge.c +++ b/drivers/power/supply/axp288_fuel_gauge.c @@ -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"), + } + }, {} };