]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba8b13080456be9a8875261b3b31c7c231892fd6
treedd8071d2c18c62b5d166d1c64bf3ed745e992de2
parent7672bb8cdaee10717d9ee0ac6b4a97f2cacdee31
power: supply: axp288_fuel_gauge: Fix battery reporting on the One Mix 1

Commit aa62f556e96d ("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: aa62f556e96d ("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