platform/x86: asus-nb-wmi: add DMI quirk for ASUS ROG Flow Z13-KJP GZ302EAC
PATCH 1/1 platform/x86: asus-nb-wmi: add DMI quirk for ASUS ROG Flow Z13-KJP GZ302EAC
The ASUS ROG Flow Z13-KJP GZ302EAC model uses sys_vendor name ASUS rather than ASUSTeK COMPUTER INC., but it needs the same folio quirk as the other ROG Flow Z13. To keep things simple, just match on sys_vendor ASUS since it covers both.
--- drivers/platform/x86/asus-nb-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/asus-nb-wmi.c +1 -1
@@ -548,7 +548,7 @@ static const struct dmi_system_id asus_quirks[] = { .callback = dmi_matched, .ident = "ASUS ROG Z13", .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), +DMI_MATCH (DMI_SYS_VENDOR ,"ASUS" ), DMI_MATCH(DMI_PRODUCT_NAME, "ROG Flow Z13"), }, .driver_data = &quirk_asus_z13,
Signature · 1 line
2.53.0
Quoted 6 lines · Matthew Schwartz
The ASUS ROG Flow Z13-KJP GZ302EAC model uses
sys_vendorname ASUS rather than ASUSTeK COMPUTER INC., but it needs the same folio quirk as the other ROG Flow Z13. To keep things simple, just match onsys_vendorASUS since it covers both.Signed-off-by Matthew Schwartz <[email protected]>
Nice solution to this.
Quoted 17 lines
--- drivers/platform/x86/asus-nb-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/asus-nb-wmi.c +1
-1@@ -548,7 +548,7 @@ static const struct dmi_system_id asus_quirks[] = { .callback = dmi_matched, .ident = "ASUS ROG Z13", .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), +DMI_MATCH (DMI_SYS_VENDOR ,"ASUS" ), DMI_MATCH(DMI_PRODUCT_NAME, "ROG Flow Z13"), }, .driver_data = &quirk_asus_z13,
Denis Benato
Reviewed-byQuoted 12 lines · Mario Limonciello (AMD) (kernel.org)
Quoted 6 lines · Matthew Schwartz
The ASUS ROG Flow Z13-KJP GZ302EAC model uses
sys_vendorname ASUS rather than ASUSTeK COMPUTER INC., but it needs the same folio quirk as the other ROG Flow Z13. To keep things simple, just match onsys_vendorASUS since it covers both.Signed-off-by Matthew Schwartz <[email protected]>Nice solution to this.
Quoted 19 lines
Reviewed-by Mario Limonciello (AMD) <[email protected]>Quoted 17 lines
---
drivers/platform/x86/asus-nb-wmi.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/asus-nb-wmi.c +1
-1@@ -548,7 +548,7 @@ static const struct dmi_system_id asus_quirks[] = { .callback = dmi_matched, .ident = "ASUS ROG Z13", .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_SYS_VENDOR, "ASUS"), DMI_MATCH(DMI_PRODUCT_NAME, "ROG Flow Z13"), }, .driver_data = &quirk_asus_z13,
Ilpo Järvinen
maintainerQuoted 6 lines · Matthew Schwartz
The ASUS ROG Flow Z13-KJP GZ302EAC model uses
sys_vendorname ASUS rather than ASUSTeK COMPUTER INC., but it needs the same folio quirk as the other ROG Flow Z13. To keep things simple, just match onsys_vendorASUS since it covers both.
Thank you for your contribution, it has been applied to my local review-ilpo-fixes branch. Note it will show up in the public platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: asus-nb-wmi: add DMI quirk for ASUS ROG Flow Z13-KJP GZ302EAC
commit: dbde8a0aa45023c52c9769ea086e2bbe576228be
--
i.