Skip to content

Commit 0b2ffba

Browse files
qzedgregkh
authored andcommitted
ACPI: battery: Add device HID and quirk for Microsoft Surface Go 3
commit 7dacee0 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>
1 parent 2724b72 commit 0b2ffba

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

drivers/acpi/battery.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ MODULE_PARM_DESC(cache_time, "cache time in milliseconds");
6666

6767
static const struct acpi_device_id battery_device_ids[] = {
6868
{"PNP0C0A", 0},
69+
70+
/* Microsoft Surface Go 3 */
71+
{"MSHW0146", 0},
72+
6973
{"", 0},
7074
};
7175

@@ -1171,6 +1175,14 @@ static const struct dmi_system_id bat_dmi_table[] __initconst = {
11711175
DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad"),
11721176
},
11731177
},
1178+
{
1179+
/* Microsoft Surface Go 3 */
1180+
.callback = battery_notification_delay_quirk,
1181+
.matches = {
1182+
DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
1183+
DMI_MATCH(DMI_PRODUCT_NAME, "Surface Go 3"),
1184+
},
1185+
},
11741186
{},
11751187
};
11761188

0 commit comments

Comments
 (0)