platform/x86/intel: hid: Add Surface Go to VGBS allow list
Subsystems (2)
PATCH 1/1 platform/x86/intel: hid: Add Surface Go to VGBS allow list
The Surface Go reports Chassis Type 9 (Laptop,) so the device needs to be added to dmi_vgbs_allow_list to enable tablet mode when an attached Type Cover is folded back.
Relevant bug report and discussion:
https://github.com/linux-surface/linux-surface/issues/837
--- drivers/platform/x86/intel/hid.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/platform/x86/intel/hid.c +6 -0
@@ -122,6 +122,12 @@ static const struct dmi_system_id dmi_vgbs_allow_list[] = { DMI_MATCH(DMI_PRODUCT_NAME, "HP Spectre x360 Convertible 15-df0xxx"), }, }, + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), + DMI_MATCH(DMI_PRODUCT_NAME, "Surface Go"), + }, + }, { } };
Signature · 1 line
2.36.1
Quoted 7 lines · Duke Lee
The Surface Go reports Chassis Type 9 (Laptop,) so the device needs to be added to
dmi_vgbs_allow_listto enable tablet mode when an attached Type Cover is folded back.Relevant bug report and discussion:
https://github.com/linux-surface/linux-surface/issues/837
It can be a BugLink tag instead.
Quoted 1 line
Quoted 1 line
Signed-off-by Duke Lee <[email protected]>
I believe Hans can tweak this on the fly, so
Quoted 24 lines
--- drivers/platform/x86/intel/hid.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/platform/x86/intel/hid.c +6
-1@@ -122,6 +122,12 @@ static const struct dmi_system_id dmi_vgbs_allow_list[] = { DMI_MATCH(DMI_PRODUCT_NAME, "HP Spectre x360 Convertible 15-df0xxx"), }, }, + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), + DMI_MATCH(DMI_PRODUCT_NAME, "Surface Go"), + }, + }, { } }; --2.36.1
Signature · 2 lines
With Best Regards, Andy Shevchenko
Hi,
Quoted 13 lines · Andy Shevchenko
Quoted 7 lines · Duke Lee
The Surface Go reports Chassis Type 9 (Laptop,) so the device needs to be added to
dmi_vgbs_allow_listto enable tablet mode when an attached Type Cover is folded back.Relevant bug report and discussion:
https://github.com/linux-surface/linux-surface/issues/837It can be a BugLink tag instead.
Quoted 1 line
Quoted 5 lines
Quoted 1 line
Signed-off-by Duke Lee <[email protected]>I believe Hans can tweak this on the fly, so
Reviewed-by Andy Shevchenko <[email protected]>
Right, I've just merged this into my review-hans branch, with the BugLink tag added. I'll also include this in my first fixes pull-req for the 5.19 cycle.
Regards,
Hans
Quoted 27 lines
Quoted 25 lines
--- drivers/platform/x86/intel/hid.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/platform/x86/intel/hid.c +6
-1@@ -122,6 +122,12 @@ static const struct dmi_system_id dmi_vgbs_allow_list[] = { DMI_MATCH(DMI_PRODUCT_NAME, "HP Spectre x360 Convertible 15-df0xxx"), }, }, + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), + DMI_MATCH(DMI_PRODUCT_NAME, "Surface Go"), + }, + }, { } }; --2.36.1