d726413
From 332faabbaab64876396be48f1a1cf72b31d53a9d Mon Sep 17 00:00:00 2001
d726413
From: Hans de Goede <hdegoede@redhat.com>
d726413
Date: Mon, 9 Nov 2015 17:09:05 +0100
d726413
Subject: [PATCH] ideapad-laptop: Add Lenovo Yoga 900 to no_hw_rfkill dmi list
d726413
d726413
Like some of the other Yoga models the Lenovo Yoga 900 does not have a
d726413
hw rfkill switch, and trying to read the hw rfkill switch through the
d726413
ideapad module causes it to always reported blocking breaking wifi.
d726413
d726413
This commit adds the Lenovo Yoga 900 to the no_hw_rfkill dmi list, fixing
d726413
the wifi breakage.
d726413
d726413
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1275490
d726413
Cc: stable@vger.kernel.org
d726413
Reported-and-tested-by: Kevin Fenzi <kevin@scrye.com>
d726413
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
d726413
---
d726413
 drivers/platform/x86/ideapad-laptop.c | 7 +++++++
d726413
 1 file changed, 7 insertions(+)
d726413
d726413
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
d726413
index fce49f3c6ed6..d4a48b4d161a 100644
d726413
--- a/drivers/platform/x86/ideapad-laptop.c
d726413
+++ b/drivers/platform/x86/ideapad-laptop.c
d726413
@@ -873,6 +873,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
d726413
 			DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo YOGA 3 Pro-1370"),
d726413
 		},
d726413
 	},
d726413
+	{
d726413
+		.ident = "Lenovo Yoga 900",
d726413
+		.matches = {
d726413
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
d726413
+			DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo YOGA 900"),
d726413
+		},
d726413
+	},
d726413
 	{}
d726413
 };
d726413
 
d726413
-- 
d726413
2.4.3
d726413