]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2022 07:57:10 +0000 (09:57 +0200)
commit0b2ffba2de5046e508616f3b30f0e424436d16f7
tree37f9503d5ff51510dec8ca30bc64d5a4c521400e
parent2724b72b225de65ad119a5cb490c974059318f5e
ACPI: battery: Add device HID and quirk for Microsoft Surface Go 3

commit 7dacee0b9efc8bd061f097b1a8d4daa6591af0c6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/battery.c