Skip to contentSkip to conversation

ideapad-laptop: Add Lenovo Yoga 2 13 to the no_hw_rfkill DMI list

PATCH In review Loic WEI YU NENG 2 participants 2 messages Nov 14, 2018 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ideapad-laptop: Add Lenovo Yoga 2 13 to the no_hw_rfkill DMI list

Some Lenovo ideapad models lack a physical rfkill switch.
On Lenovo models Yoga 2 13, ideapad-laptop would wrongly report all radios as blocked by hardware which caused wireless network connections to fail.
Add these models without an rfkill switch to the no_hw_rfkill list.

---
 drivers/platform/x86/ideapad-laptop.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/platform/x86/ideapad-laptop.c +7 -0
index b6489cba2985..1589dffab9fa 100644
@@ -1188,6 +1188,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "Yoga2"),
 		},
 	},
+	{
+		.ident = "Lenovo Yoga 2 13",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_VERSION, "Yoga 2 13"),
+		},
+	},
 	{
 		.ident = "Lenovo Yoga 3 1170 / 1470",
 		.matches = {
Signature · 1 line
2.17.1
#1 lore raw
Quoted 7 lines · Loic WEI YU NENG

Some Lenovo ideapad models lack a physical rfkill switch.
On Lenovo models Yoga 2 13, ideapad-laptop would wrongly report all radios as blocked by hardware which caused wireless network connections to fail.
Add these models without an rfkill switch to the no_hw_rfkill list.

Pushed to my review and testing queue, thanks

Quoted 26 lines
---
 drivers/platform/x86/ideapad-laptop.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/platform/x86/ideapad-laptop.c +7 -1
index b6489cba2985..1589dffab9fa 100644
@@ -1188,6 +1188,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
                        DMI_MATCH(DMI_BOARD_NAME, "Yoga2"),
                },
        },
+       {
+               .ident = "Lenovo Yoga 2 13",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Yoga 2 13"),
+               },
+       },
        {
                .ident = "Lenovo Yoga 3 1170 / 1470",
                .matches = {
--

2.17.1

Signature · 2 lines
With Best Regards,
Andy Shevchenko