power: supply: axp288_fuel_gauge: Fix battery reporting on the One Mix 1
authorHans de Goede <hdegoede@redhat.com>
Mon, 2 May 2022 11:12:34 +0000 (13:12 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 3 May 2022 15:01:53 +0000 (17:01 +0200)
commit34f243e9fb5ace1ca760c72e366247eaeff430c0
treedd8071d2c18c62b5d166d1c64bf3ed745e992de2
parente56a4be2843c95c08cf8421dc1f8e880cafbaf91
power: supply: axp288_fuel_gauge: Fix battery reporting on the One Mix 1

Commit 3a06b912a5ce ("power: supply: axp288_fuel_gauge: Make "T3 MRD"
no_battery_list DMI entry more generic") added a generic no-battery DMI
match for many mini-PCs / HDMI-sticks which use "T3 MRD" as their DMI
board-name.

It turns out that the One Mix 1 mini laptop also uses "T3 MRD" for its
DMI boardname and it also has its chassis-type wrongly set to a value
of "3" (desktop). This was causing the axp288_fuel_gauge driver to
disable battery reporting because this matches the no-battery DMI
list entry for generic "T3 MRD" mini-PCs.

Change the no-battery DMI list into a quirks DMI list and add a
specific match for the One Mix 1 mini laptop before the generic
"T3 MRD" no-battery quirk entry to fix this.

Fixes: 3a06b912a5ce ("power: supply: axp288_fuel_gauge: Make "T3 MRD" no_battery_list DMI entry more generic")
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