OSDN Git Service

power: supply: axp288_fuel_gauge: Do not register our psy on (some) HDMI sticks
authorHans de Goede <hdegoede@redhat.com>
Tue, 26 Dec 2017 12:59:13 +0000 (13:59 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Tue, 9 Jan 2018 16:50:05 +0000 (17:50 +0100)
commitb60c75b6a502077f0edb10c274eb5ac8e72ba342
treeb2403d5716987c1eb7a3f85071e655bdccb1a8fd
parentceb40831c94115134581ee6eaaa26001e00def5f
power: supply: axp288_fuel_gauge: Do not register our psy on (some) HDMI sticks

The Intel Compute Stick (Cherry Trail version) and the Meegopad T08 HDMI
stick, both use an axp288 PMIC.  They also both have this wired up in such
a way that the detection logic in the PMIC claims that a valid battery is
present, resuling in GNOME and KDE showing a full-battery in their status
bar and power-settings, while these devices do not have a battery.

For lack of a better fix add a DMI blacklist and do not register the
axp288_fuel_gauge psy on devices on the blacklist.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/axp288_fuel_gauge.c