Skip to contentSkip to conversation

platform/x86/asus-nb-wmi.c: Add X45U quirk

PATCH Superseded Marcos Paulo de Souza 2 participants 6 messages Nov 1, 2016 – Nov 8, 2016

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 platform/x86/asus-nb-wmi.c: Add X45U quirk

Without this patch, the Asus X45U wireless card can't be turned on (hard-blocked), but after a suspend/resume it just starts working.

Following this bug report[1], there are other cases like this one, but this Asus is the only model that I can test.

[1] https://ubuntuforums.org/showthread.php?t=2181558

---
This patch applies smoothly in 4.8.6 and 4.4.29. I hope now I followed the instructions correctly.

v1 -> v2:
Add stable copy and specify the stable version to apply this patch

 drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +9 -0
index 26e4cbc..6032b70 100644
@@ -175,6 +175,15 @@ static const struct dmi_system_id asus_quirks[] = {
 	},
 	{
 		.callback = dmi_matched,
+		.ident = "ASUSTeK COMPUTER INC. X45U",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X45U"),
+		},
+		.driver_data = &quirk_asus_wapf4,
+	},
+	{
+		.callback = dmi_matched,
 		.ident = "ASUSTeK COMPUTER INC. X456UA",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
Signature · 1 line
2.7.4
#1 lore raw
Quoted 6 lines · Marcos Paulo de Souza

Without this patch, the Asus X45U wireless card can't be turned on (hard-blocked), but after a suspend/resume it just starts working.

Following this bug report[1], there are other cases like this one, but this Asus is the only model that I can test.

Quoted 8 lines

[1] https://ubuntuforums.org/showthread.php?t=2181558

---
This patch applies smoothly in 4.8.6 and 4.4.29. I hope now I followed the instructions correctly.

Hi Marcos,

You'll find exact steps in the stable_kernel_rules.txt document regarding how to annotate the commit message with Cc lines indicating to which versions this patch should be applied.

If, for example, you have verified that this patch is relevant only to 4.4 and forward, you would include:

Cc <[email protected]> # 4.4.x-

But this should mean that the patch is explicitly broken or otherwise inappropriate for 4.3 and earlier.

Thanks,

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
#2 lore raw

Hi Darren,

Quoted 22 lines · Darren Hart
Quoted 6 lines · Marcos Paulo de Souza

Without this patch, the Asus X45U wireless card can't be turned on (hard-blocked), but after a suspend/resume it just starts working.

Following this bug report[1], there are other cases like this one, but this Asus is the only model that I can test.

Quoted 8 lines

[1] https://ubuntuforums.org/showthread.php?t=2181558

---
This patch applies smoothly in 4.8.6 and 4.4.29. I hope now I followed the instructions correctly.

Hi Marcos,

You'll find exact steps in the stable_kernel_rules.txt document regarding how to annotate the commit message with Cc lines indicating to which versions this patch should be applied.

Quoted 7 lines

If, for example, you have verified that this patch is relevant only to 4.4 and forward, you would include:

Cc <[email protected]> # 4.4.x-

But this should mean that the patch is explicitly broken or otherwise inappropriate for 4.3 and earlier.

Yes, I have misread the documentation. I could apply the patch as is just in the versions 4.8.6 and 4.4.29, but maybe I could rework te patch earlier versions.

But, aside from stable tree, do you agree with this change, since it fixes the wireless problem in this laptop?

Thanks,

Quoted 6 lines

Thanks,

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
#3 lore raw
Quoted 30 lines · Marcos Paulo de Souza

Hi Darren,

Quoted 27 lines · Darren Hart
Quoted 6 lines · Marcos Paulo de Souza

Without this patch, the Asus X45U wireless card can't be turned on (hard-blocked), but after a suspend/resume it just starts working.

Following this bug report[1], there are other cases like this one, but this Asus is the only model that I can test.

Quoted 8 lines

[1] https://ubuntuforums.org/showthread.php?t=2181558

---
This patch applies smoothly in 4.8.6 and 4.4.29. I hope now I followed the instructions correctly.

Hi Marcos,

You'll find exact steps in the stable_kernel_rules.txt document regarding how to annotate the commit message with Cc lines indicating to which versions this patch should be applied.

If, for example, you have verified that this patch is relevant only to 4.4 and forward, you would include:

Cc <[email protected]> # 4.4.x-
Quoted 8 lines
Quoted 2 lines

But this should mean that the patch is explicitly broken or otherwise inappropriate for 4.3 and earlier.

Yes, I have misread the documentation. I could apply the patch as is just in the versions 4.8.6 and 4.4.29, but maybe I could rework te patch earlier versions.

But, aside from stable tree, do you agree with this change, since it fixes the wireless problem in this laptop?

Yes, no objection to the patch. It happened to land right about the time we were having the "be better about how you manage your stable commits" discussion at kernel summit, so it got some extra focus :-)

Care to resend with the Cc stable tag corrected?

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
#4 lore raw

Hi Darren,

Quoted 37 lines · Darren Hart
Quoted 36 lines · Marcos Paulo de Souza

Hi Darren,

Quoted 22 lines · Darren Hart
Quoted 6 lines · Marcos Paulo de Souza

Without this patch, the Asus X45U wireless card can't be turned on (hard-blocked), but after a suspend/resume it just starts working.

Following this bug report[1], there are other cases like this one, but this Asus is the only model that I can test.

Quoted 8 lines

[1] https://ubuntuforums.org/showthread.php?t=2181558

---
This patch applies smoothly in 4.8.6 and 4.4.29. I hope now I followed the instructions correctly.

Hi Marcos,

You'll find exact steps in the stable_kernel_rules.txt document regarding how to annotate the commit message with Cc lines indicating to which versions this patch should be applied.

Quoted 7 lines

If, for example, you have verified that this patch is relevant only to 4.4 and forward, you would include:

Cc <[email protected]> # 4.4.x-

But this should mean that the patch is explicitly broken or otherwise inappropriate for 4.3 and earlier.

Yes, I have misread the documentation. I could apply the patch as is just in the versions 4.8.6 and 4.4.29, but maybe I could rework te patch earlier versions.

Quoted 8 lines
Quoted 2 lines

But, aside from stable tree, do you agree with this change, since it fixes the wireless problem in this laptop?

Yes, no objection to the patch. It happened to land right about the time we were having the "be better about how you manage your stable commits" discussion at kernel summit, so it got some extra focus :-)

Care to resend with the Cc stable tag corrected?

Absolutely not. I just sent a new version with the version along with the stable email.

Thanks for your patience in this subject :)

Quoted 4 lines
Signature · 3 lines
-- 
Darren Hart
Intel Open Source Technology Center
#5 lore raw
In reply to Darren Hart

Hi Darren,

Quoted 37 lines · Darren Hart
Quoted 36 lines · Marcos Paulo de Souza

Hi Darren,

Quoted 22 lines · Darren Hart
Quoted 6 lines · Marcos Paulo de Souza

Without this patch, the Asus X45U wireless card can't be turned on (hard-blocked), but after a suspend/resume it just starts working.

Following this bug report[1], there are other cases like this one, but this Asus is the only model that I can test.

Quoted 8 lines

[1] https://ubuntuforums.org/showthread.php?t=2181558

---
This patch applies smoothly in 4.8.6 and 4.4.29. I hope now I followed the instructions correctly.

Hi Marcos,

You'll find exact steps in the stable_kernel_rules.txt document regarding how to annotate the commit message with Cc lines indicating to which versions this patch should be applied.

Quoted 7 lines

If, for example, you have verified that this patch is relevant only to 4.4 and forward, you would include:

Cc <[email protected]> # 4.4.x-

But this should mean that the patch is explicitly broken or otherwise inappropriate for 4.3 and earlier.

Yes, I have misread the documentation. I could apply the patch as is just in the versions 4.8.6 and 4.4.29, but maybe I could rework te patch earlier versions.

Quoted 8 lines
Quoted 2 lines

But, aside from stable tree, do you agree with this change, since it fixes the wireless problem in this laptop?

Yes, no objection to the patch. It happened to land right about the time we were having the "be better about how you manage your stable commits" discussion at kernel summit, so it got some extra focus :-)

Care to resend with the Cc stable tag corrected?

I had some problem to send the patch through git send-email and mutt, because the stable address and the version always got merged. So Laura Abbott helped me with the tip of --suppress-cc=bodycc, and then I added stable address manually.

Is there a new procedure to send a patch to stable, without being this tricky? Is there is, I would be happy to send a patch to fix our documentation, since even people from kernel newbies are suffering by the same problem[1]

Thanks in advance.

[1]
https://lists.kernelnewbies.org/pipermail/kernelnewbies/2016-April/016194.html

Quoted 4 lines
Signature · 3 lines
-- 
Darren Hart
Intel Open Source Technology Center