ideapad-laptop: add alternative representation for Yoga 2 to DMI table

This change “ideapad-laptop: add alternative representation for Yoga 2 to DMI table” in Linux kernel is authored by Sebastian Krzyszkowiak <dos [at] dosowisko.net> on Sun Jul 19 01:10:21 2015 +0200.

ideapad-laptop: add alternative representation for Yoga 2 to DMI table

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>

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases including commit 6d212b8.

There are 7 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 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 81c3e582..fce49f3 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -860,6 +860,13 @@ static void ideapad_acpi_notify(acpi_handle handle, u32 event, void *data)
 		},
 	},
 	{
+		.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 = {
 			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),

The commit for this change in Linux stable tree is 6d212b8 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *