diff options
author | Hans de Goede <hdegoede@redhat.com> | 2017-04-19 14:02:10 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-04-19 22:53:35 +0200 |
commit | dccfae6d4f4c2cfa1fdc3bf55755fcad02184b99 (patch) | |
tree | 016021d439a4d33ac3d19db2a849337901220c6e /drivers/acpi/acpi_platform.c | |
parent | bc39fbcf9c782970263bdc5b428e4a755db16efb (diff) | |
download | linux-dccfae6d4f4c2cfa1fdc3bf55755fcad02184b99.tar.bz2 |
ACPI / battery: Add a blacklist with PMIC ACPI HIDs with a native battery driver
On some systems we have a native PMIC driver which provides battery
monitoring, while the ACPI battery driver is broken on these systems
due to bad DSDTs or because we do not support the proprietary and
undocumented ACPI opregions these ACPI battery devices rely on
(e.g. BMOP opregion).
This leads to there being 2 battery power_supply-s registed like this:
~$ acpi
Battery 0: Charging, 84%, 00:49:39 until charged
Battery 1: Unknown, 0%, rate information unavailable
Even if the ACPI battery where to function fine (which on systems
where we have a native PMIC driver it often doesn't) we still do not
want to export the same battery to userspace twice.
This commit adds a blacklist with PMIC ACPI HIDs for which we've a
native battery driver and makes the ACPI battery driver not register
itself when a PMIC on this list is present.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=194811
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_platform.c')
0 files changed, 0 insertions, 0 deletions