]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ACPI / AC: Add a blacklist with PMIC ACPI HIDs with a native charger driver
authorHans de Goede <hdegoede@redhat.com>
Wed, 19 Apr 2017 12:02:11 +0000 (14:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Apr 2017 20:53:35 +0000 (22:53 +0200)
commitaf3ec837b84befedde35a2239f873f6cd7c09e68
tree5f4b8ddd8f191bc3ae4c160e2f30e43475f918aa
parentdccfae6d4f4c2cfa1fdc3bf55755fcad02184b99
ACPI / AC: Add a blacklist with PMIC ACPI HIDs with a native charger driver

On some systems we have a native PMIC driver which provides Mains
monitoring, while the ACPI ac driver is broken on these systems
due to bad DSTDs or because we do not support the proprietary and
undocumented ACPI opregions these ACPI battery devices rely on
(e.g. BMOP opregion).

This leads for example to a ADP1 power_supply which reports
itself as always online even if no mains are connected.

This commit adds a blacklist with PMIC ACPI HIDs for which we've a
native charger or extcon driver and makes the ACPI ac driver not
register itself when a PMIC on this list is present.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ac.c