Skip to contentSkip to conversation

asus-nb-wmi: Add wapf4 quirk for the X302UA

PATCH In review Santeri Toivonen 2 participants 4 messages Apr 4, 2017

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

PATCH 1/1 asus-nb-wmi: Add wapf4 quirk for the X302UA

Asus laptop X302UA starts up with Wi-Fi disabled, without a way to enable it. Set wapf=4 to fix the problem.

---
 drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +9 -0
index dea98ffb6f60..1ae58d906536 100644
@@ -144,6 +144,15 @@ static const struct dmi_system_id asus_quirks[] = {
 	},
 	{
 		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X302UA",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X302UA"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
 		.ident = "ASUSTeK COMPUTER INC. X401U",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
Signature · 1 line
2.11.0.windows.3
#1 lore raw
Quoted 19 lines · Santeri Toivonen

Asus laptop X302UA starts up with Wi-Fi disabled, without a way to enable it. Set wapf=4 to fix the problem.

---
 drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +2 -0
index dea98ffb6f60..1ae58d906536 100644
@@ -144,6 +144,15 @@ static const struct dmi_system_id asus_quirks[] = {
 	},
 	{
 		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X302UA",
+		.matches = {

drivers/platform/x86/asus-nb-wmi.c static const struct dmi_system_id asus_quirks[] = { · line 158

Quoted 10 lines
drivers/platform/x86/asus-nb-wmi.c +7 -0
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X302UA"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
 		.ident = "ASUSTeK COMPUTER INC. X401U",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),

Hi Santeri,

How are you preparing your patches? The context lines have an extra leading space and fail to apply with git-am and patch.

Git will create properly formatted patches using the "git format-patch" command
after you have committed the change to your local repository. Alternatively you can use "diff -Nurp" directly, although that's much more tedious. Documentation/process/submitting-patches.rst has detailed instructions in "1) ``diff -up``".

Signature · 2 lines
Darren Hart
VMware Open Source Technology Center
#2 lore raw
Quoted 33 lines · Darren Hart
Quoted 19 lines · Santeri Toivonen

Asus laptop X302UA starts up with Wi-Fi disabled, without a way to enable it. Set wapf=4 to fix the problem.

---
 drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +2 -0
index dea98ffb6f60..1ae58d906536 100644
@@ -144,6 +144,15 @@ static const struct dmi_system_id asus_quirks[] = {
 	},
 	{
 		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X302UA",
+		.matches = {

drivers/platform/x86/asus-nb-wmi.c static const struct dmi_system_id asus_quirks[] = { · line 158

Quoted 10 lines
drivers/platform/x86/asus-nb-wmi.c +7 -0
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X302UA"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
 		.ident = "ASUSTeK COMPUTER INC. X401U",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),

Hi Santeri,

Quoted 1 line

How are you preparing your patches? The context lines have an extra

leading

Quoted 3 lines

space and fail to apply with git-am and patch.

Git will create properly formatted patches using the "git

format-patch" command

Quoted 1 line

after you have committed the change to your local repository.

Alternatively you can use "diff -Nurp" directly, although that's much more tedious. Documentation/process/submitting-patches.rst has detailed instructions in "1) ``diff -up``".

Quoted 1 line

It seems that some thunderbird default configurations resulted in random spaces at line breaks. I created the patch with git format-patch command and applied it successfully while testing.

From: Santeri Toivonen <[email protected]>
Subject: [PATCH] asus-nb-wmi: Add wapf4 quirk for the X302UA

Asus laptop X302UA starts up with Wi-Fi disabled, without a way to enable it. Set wapf=4 to fix the problem.

---
 drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++
 1 file changed, 9 insertions(+)
(quoted diff) +0 -0

b/drivers/platform/x86/asus-nb-wmi.c
index 38f905d86f1f..0b0fde21cf5b 100644

drivers/platform/x86/asus-nb-wmi.c +9 -0
@@ -180,6 +180,15 @@ static const struct dmi_system_id asus_quirks[] = {
 	},
 	{
 		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X302UA",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X302UA"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
 		.ident = "ASUSTeK COMPUTER INC. X401U",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
Signature · 1 line
2.11.0.windows.3
#3 lore raw
Quoted 41 lines · Santeri Toivonen
Quoted 33 lines · Darren Hart
Quoted 19 lines · Santeri Toivonen

Asus laptop X302UA starts up with Wi-Fi disabled, without a way to enable it. Set wapf=4 to fix the problem.

---
 drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +2 -0
index dea98ffb6f60..1ae58d906536 100644
@@ -144,6 +144,15 @@ static const struct dmi_system_id asus_quirks[] = {
 	},
 	{
 		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X302UA",
+		.matches = {

drivers/platform/x86/asus-nb-wmi.c static const struct dmi_system_id asus_quirks[] = { · line 158

Quoted 10 lines
drivers/platform/x86/asus-nb-wmi.c +7 -0
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X302UA"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
 		.ident = "ASUSTeK COMPUTER INC. X401U",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),

Hi Santeri,

Quoted 1 line

How are you preparing your patches? The context lines have an extra

leading

Quoted 3 lines

space and fail to apply with git-am and patch.

Git will create properly formatted patches using the "git

format-patch" command

Quoted 1 line

after you have committed the change to your local repository.

Quoted 8 lines

Alternatively you can use "diff -Nurp" directly, although that's much more tedious. Documentation/process/submitting-patches.rst has detailed instructions in "1) ``diff -up``".

Quoted 1 line

It seems that some thunderbird default configurations resulted in random spaces at line breaks. I created the patch with git format-patch command and applied it successfully while testing.

text=flowed I suspect. I've given up trying to get GUI clients to behave for patch management myself. I have email (pick whatever client you like), and then I have a patch manager (mutt). :-)

Thanks for sticking with it, appreciate the effort.

Quoted 7 lines

From: Santeri Toivonen <[email protected]>
Subject: [PATCH] asus-nb-wmi: Add wapf4 quirk for the X302UA

Asus laptop X302UA starts up with Wi-Fi disabled, without a way to enable it. Set wapf=4 to fix the problem.

Queued to the testing branch, should land in 4.12.

Signature · 2 lines
Darren Hart
VMware Open Source Technology Center