platform/x86: ideapad-laptop: Add Y520-15IKBN to no_hw_rfkill
authorOlle Liljenzin <olle@liljenzin.se>
Sun, 18 Jun 2017 11:09:31 +0000 (13:09 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 20 Mar 2018 08:31:07 +0000 (08:31 +0000)
Lenovo Legion Y520-15IKBN is yet another Lenovo model that does not
have an hw rfkill switch, resulting in wifi always reported as hard
blocked.

Add the model to the list of models without rfkill switch.

Signed-off-by: Olle Liljenzin <olle@liljenzin.se>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name platform-x86-ideapad-laptop-add-y520-15ikbn-to-no_hw.patch

drivers/platform/x86/ideapad-laptop.c

index 30622bdff6a6d219e6977289e19e279f20f45092..c8c0207260ea9720e82ca254c5e5ae1ed42570df 100644 (file)
@@ -1124,6 +1124,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
                        DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Y720-15IKBN"),
                },
        },
+       {
+               .ident = "Lenovo Legion Y520-15IKBN",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Y520-15IKBN"),
+               },
+       },
        {
                .ident = "Lenovo Yoga 2 11 / 13 / Pro",
                .matches = {