]> git.baikalelectronics.ru Git - kernel.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)
commit001c6c27861ed852a39925e4ceed4367bc9b3436
tree5f4b8ddd8f191bc3ae4c160e2f30e43475f918aa
parent7bf7e7b13761a69d1ecf943ce6c106944b6c32ca
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