Skip to contentSkip to conversation

asus-nb-wmi: Add wapf=4 quirk for X456UA/X456UF

PATCH In review Daniel Drake 3 participants 6 messages Sep 2, 2015 – Sep 8, 2015

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

PATCH 1/1 asus-nb-wmi: Add wapf=4 quirk for X456UA/X456UF

These laptops boot with wifi as hard-blocked, with no obvious way to enable it. Using a quirk to set wapf=4 solves the problem.

---
 drivers/platform/x86/asus-nb-wmi.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +18 -0
index abdaed3..131fee2 100644
@@ -128,6 +128,24 @@ static const struct dmi_system_id asus_quirks[] = {
 	},
 	{
 		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X456UA",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X456UA"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X456UF",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X456UF"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
 		.ident = "ASUSTeK COMPUTER INC. X501U",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
Signature · 1 line
2.1.4
#1 lore raw
Quoted 4 lines · Daniel Drake

These laptops boot with wifi as hard-blocked, with no obvious way to enable it. Using a quirk to set wapf=4 solves the problem.

Looks good.

Corentin, any concerns?

Quoted 37 lines
---
 drivers/platform/x86/asus-nb-wmi.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +18 -0
index abdaed3..131fee2 100644
@@ -128,6 +128,24 @@ static const struct dmi_system_id asus_quirks[] = {
 	},
 	{
 		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X456UA",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X456UA"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X456UF",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X456UF"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
 		.ident = "ASUSTeK COMPUTER INC. X501U",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
Signature · 1 line
2.1.4
Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
maintainer Acked-by
#2 lore raw

Looks good.

I'd like to get somebody from Asus help us guess these values instead of just hard-coding them.. Unfortunately I have no contact with them anymore.

Quoted 51 lines · Darren Hart
Quoted 4 lines · Daniel Drake

These laptops boot with wifi as hard-blocked, with no obvious way to enable it. Using a quirk to set wapf=4 solves the problem.

Looks good.

Corentin, any concerns?

Quoted 34 lines
---
 drivers/platform/x86/asus-nb-wmi.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +18 -1
index abdaed3..131fee2 100644
@@ -128,6 +128,24 @@ static const struct dmi_system_id asus_quirks[] = {
      },
      {
              .callback = dmi_matched,
+             .ident = "ASUSTeK COMPUTER INC. X456UA",
+             .matches = {
+                     DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                     DMI_MATCH(DMI_PRODUCT_NAME, "X456UA"),
+             },
+             .driver_data = &quirk_asus_wapf4,
+     },
+     {
+             .callback = dmi_matched,
+             .ident = "ASUSTeK COMPUTER INC. X456UF",
+             .matches = {
+                     DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                     DMI_MATCH(DMI_PRODUCT_NAME, "X456UF"),
+             },
+             .driver_data = &quirk_asus_wapf4,
+     },
+     {
+             .callback = dmi_matched,
              .ident = "ASUSTeK COMPUTER INC. X501U",
              .matches = {
                      DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
--
Quoted 3 lines

2.1.4

--
Darren Hart
Intel Open Source Technology Center

Signature · 2 lines
Corentin Chary
http://xf.iksaif.net
#4 lore raw
In reply to Corentin Chary
Quoted 7 lines · Corentin Chary

Looks good.

I'd like to get somebody from Asus help us guess these values instead of just hard-coding them.. Unfortunately I have no contact with them anymore.

I'll see if I can get a conversation going. I don't fully grasp this WAPF situation though. Are you hoping that they would provide us with a complete list of laptops to quirk, or do you think there is instead some way we could improve the code to work with all models without a specific whitelist/blacklist?

Thanks
Daniel

maintainer
#5 lore raw
Quoted 9 lines · Daniel Drake
Quoted 7 lines · Corentin Chary

Looks good.

I'd like to get somebody from Asus help us guess these values instead of just hard-coding them.. Unfortunately I have no contact with them anymore.

Quoted 5 lines

I'll see if I can get a conversation going. I don't fully grasp this WAPF situation though. Are you hoping that they would provide us with a complete list of laptops to quirk, or do you think there is instead some way we could improve the code to work with all models without a specific whitelist/blacklist?

I think at least having proper documentation of the intended behavior of WAPF and how they themselves set the value for windows would be great.

Quoted 2 lines

Thanks
Daniel

Signature · 2 lines
Corentin Chary
http://xf.iksaif.net