]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ideapad-laptop: add alternative representation for Yoga 2 to DMI table
authorSebastian Krzyszkowiak <dos@dosowisko.net>
Sat, 18 Jul 2015 23:10:21 +0000 (01:10 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Tue, 11 Aug 2015 04:24:23 +0000 (21:24 -0700)
There is at least one (mine) Yoga 2 Pro in existence that has incorrect
product version stored in DMI (reading as "INVALID"), causing it to not be
recognized as Yoga 2 by ideapad-laptop module, which in turn causes
non-existent hardware rfkills to be always reported as blocked.

This change adds a second check by board name, which is "Yoga2".
Looks like it also happens to be "INVALID" on some other Yoga 2 machines
where product version is correct instead, so the original check is left
intact to catch both cases.

Signed-off-by: Sebastian Krzyszkowiak <dos@dosowisko.net>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/ideapad-laptop.c

index 81c3e582309a14ac2e44baeae69d3d3399085c20..fce49f3c6ed688f676aea9be4647cc63d3c56416 100644 (file)
@@ -859,6 +859,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
                        DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo Yoga 3 14"),
                },
        },
+       {
+               .ident = "Lenovo Yoga 2 11 / 13 / Pro",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_BOARD_NAME, "Yoga2"),
+               },
+       },
        {
                .ident = "Lenovo Yoga 3 Pro 1370",
                .matches = {