]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / SBS: Don't assume the existence of an SBS charger
authorMatthew Garrett <matthew.garrett@nebula.com>
Sat, 20 Sep 2014 11:19:45 +0000 (13:19 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Sep 2014 21:31:11 +0000 (23:31 +0200)
commit22acfd56b34cae3a9b49eb971d19e9f3cdbd0fc6
treefdd49651c754cd6fd2f2c7d9810720eb21a6c230
parent8ec11e1c58a2c22a1393a1f3aa2c09dc37cb74b2
ACPI / SBS: Don't assume the existence of an SBS charger

Apple hardware continues to expose an ACPI AC charger even when using
SBS to report battery state. The charger status byte returns all 0s in
this case.  Since the spec requires that bit 4 be 1 at all times, assume
that there's not really a charger if it's set to zero.

Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sbs.c