From a74d8de2729a14ff63c3fc23e2b959e91bea0f72 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Tue, 10 Nov 2015 11:21:12 -0500 Subject: [PATCH] Fix Yoga 900 rfkill switch issues (rhbz 1275490) --- ...dd-Lenovo-Yoga-900-to-no_hw_rfkill-d.patch | 41 +++++++++++++++++++ kernel.spec | 4 ++ 2 files changed, 45 insertions(+) create mode 100644 ideapad-laptop-Add-Lenovo-Yoga-900-to-no_hw_rfkill-d.patch diff --git a/ideapad-laptop-Add-Lenovo-Yoga-900-to-no_hw_rfkill-d.patch b/ideapad-laptop-Add-Lenovo-Yoga-900-to-no_hw_rfkill-d.patch new file mode 100644 index 000000000..9f6e5db1c --- /dev/null +++ b/ideapad-laptop-Add-Lenovo-Yoga-900-to-no_hw_rfkill-d.patch @@ -0,0 +1,41 @@ +From 332faabbaab64876396be48f1a1cf72b31d53a9d Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Mon, 9 Nov 2015 17:09:05 +0100 +Subject: [PATCH] ideapad-laptop: Add Lenovo Yoga 900 to no_hw_rfkill dmi list + +Like some of the other Yoga models the Lenovo Yoga 900 does not have a +hw rfkill switch, and trying to read the hw rfkill switch through the +ideapad module causes it to always reported blocking breaking wifi. + +This commit adds the Lenovo Yoga 900 to the no_hw_rfkill dmi list, fixing +the wifi breakage. + +BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1275490 +Cc: stable@vger.kernel.org +Reported-and-tested-by: Kevin Fenzi +Signed-off-by: Hans de Goede +--- + drivers/platform/x86/ideapad-laptop.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c +index fce49f3c6ed6..d4a48b4d161a 100644 +--- a/drivers/platform/x86/ideapad-laptop.c ++++ b/drivers/platform/x86/ideapad-laptop.c +@@ -873,6 +873,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = { + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo YOGA 3 Pro-1370"), + }, + }, ++ { ++ .ident = "Lenovo Yoga 900", ++ .matches = { ++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), ++ DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo YOGA 900"), ++ }, ++ }, + {} + }; + +-- +2.4.3 + diff --git a/kernel.spec b/kernel.spec index d20440730..2d603715d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -602,6 +602,9 @@ Patch551: KVM-svm-unconditionally-intercept-DB.patch #rhbz 1269300 Patch552: megaraid_sas-Do-not-use-PAGE_SIZE-for-max_sectors.patch +#rhbz 1275490 +Patch553: ideapad-laptop-Add-Lenovo-Yoga-900-to-no_hw_rfkill-d.patch + # END OF PATCH DEFINITIONS %endif @@ -2046,6 +2049,7 @@ fi # %changelog * Tue Nov 10 2015 Josh Boyer +- Fix Yoga 900 rfkill switch issues (rhbz 1275490) - Fix incorrect size calculations in megaraid with 64K pages (rhbz 1269300) - CVE-2015-8104 kvm: DoS infinite loop in microcode DB exception (rhbz 1278496 1279691) - CVE-2015-5307 kvm: DoS infinite loop in microcode AC exception (rhbz 1277172 1279688)