platform/x86: ideapad-laptop: Add several models to no_hw_rfkill
authorYang Jiaxun <yjx@flygoat.com>
Tue, 4 Jul 2017 14:39:19 +0000 (14:39 +0000)
committerBastian Blank <waldi@debian.org>
Fri, 22 Jun 2018 09:50:22 +0000 (10:50 +0100)
Some Lenovo ideapad models do not have hardware rfkill switches, but
trying to read the rfkill switches through the ideapad-laptop module.
It caused to always reported blocking breaking wifi.

Fix it by adding those models to no_hw_rfkill_list.

Signed-off-by: Yang Jiaxun <yjx@flygoat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name platform-x86-ideapad-laptop-add-several-models-to-no.patch

drivers/platform/x86/ideapad-laptop.c

index 35bfd8f2964d0d0f9fa1b797b5bddd7cbd47b2c3..135966e611fe8795ab38454592827547ed5ee7a0 100644 (file)
@@ -1051,6 +1051,27 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
                        DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad Y700-14ISK"),
                },
        },
+       {
+               .ident = "Lenovo V310-14IKB",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo V310-14IKB"),
+               },
+       },
+       {
+               .ident = "Lenovo V310-14ISK",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo V310-14ISK"),
+               },
+       },
+       {
+               .ident = "Lenovo V310-15IKB",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo V310-15IKB"),
+               },
+       },
        {
                .ident = "Lenovo V310-15ISK",
                .matches = {
@@ -1065,6 +1086,41 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
                        DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo V510-15IKB"),
                },
        },
+       {
+               .ident = "Lenovo ideapad 300-15IBR",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 300-15IBR"),
+               },
+       },
+       {
+               .ident = "Lenovo ideapad 300-15IKB",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 300-15IKB"),
+               },
+       },
+       {
+               .ident = "Lenovo ideapad 300S-11IBR",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 300S-11BR"),
+               },
+       },
+       {
+               .ident = "Lenovo ideapad 310-15ABR",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 310-15ABR"),
+               },
+       },
+       {
+               .ident = "Lenovo ideapad 310-15IAP",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 310-15IAP"),
+               },
+       },
        {
                .ident = "Lenovo ideapad 310-15IKB",
                .matches = {
@@ -1072,6 +1128,20 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
                        DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 310-15IKB"),
                },
        },
+       {
+               .ident = "Lenovo ideapad 310-15ISK",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 310-15ISK"),
+               },
+       },
+       {
+               .ident = "Lenovo ideapad Y700-14ISK",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad Y700-14ISK"),
+               },
+       },
        {
                .ident = "Lenovo ideapad Y700-15ACZ",
                .matches = {