Skip to contentSkip to conversation

platform/x86: asus-nb-wmi: add DMI quirk for ASUS ROG Flow Z13-KJP GZ302EAC

PATCH In review Matthew Schwartz 4 participants 4 messages Mar 12 – Mar 17

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index a38a65f5c550d..b4677c5bba5b4 100644
@@ -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
#1 lore raw
Quoted 6 lines · Matthew Schwartz

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.

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
index a38a65f5c550d..b4677c5bba5b4 100644
@@ -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,
Reviewed-by
#2 lore raw
Quoted 12 lines · Mario Limonciello (AMD) (kernel.org)
Quoted 6 lines · Matthew Schwartz

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.

Nice solution to this.

Quoted 19 lines
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
index a38a65f5c550d..b4677c5bba5b4 100644
@@ -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,
maintainer
#3 lore raw
In reply to Matthew Schwartz
Quoted 6 lines · Matthew Schwartz

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.

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.