]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: battery: Add device HID and quirk for Microsoft Surface Go 3
authorMaximilian Luz <luzmaximilian@gmail.com>
Sun, 13 Feb 2022 15:49:20 +0000 (16:49 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Feb 2022 19:52:19 +0000 (20:52 +0100)
commit10175443df3bbdfdb7e594139bcd8f9559443b48
treea74f89489beafa54b0269fc68eb30ef7993efceb
parenta8d85584c49c3d169d5011cf97389666b965dcb7
ACPI: battery: Add device HID and quirk for Microsoft Surface Go 3

For some reason, the Microsoft Surface Go 3 uses the standard ACPI
interface for battery information, but does not use the standard PNP0C0A
HID. Instead it uses MSHW0146 as identifier. Add that ID to the driver
as this seems to work well.

Additionally, the power state is not updated immediately after the AC
has been (un-)plugged, so add the respective quirk for that.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c