From patchwork Sat Jul 18 23:10:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Krzyszkowiak X-Patchwork-Id: 6821491 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0FB26C05AC for ; Sat, 18 Jul 2015 23:11:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 359F8205AA for ; Sat, 18 Jul 2015 23:11:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0FDB20595 for ; Sat, 18 Jul 2015 23:11:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752186AbbGRXLB (ORCPT ); Sat, 18 Jul 2015 19:11:01 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:34927 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751917AbbGRXLA (ORCPT ); Sat, 18 Jul 2015 19:11:00 -0400 Received: by lahh5 with SMTP id h5so78254692lah.2 for ; Sat, 18 Jul 2015 16:10:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id; bh=TtixyMV3F55OFg6nGPr8g7lHGm+IWezmLq8kuMiNLPQ=; b=UTmhLj+1CJ9QCOZ/HplbY9qPTebRcHF02a5gp+VKAK7cRsWmFHpUsmF+IU2UDpyxd9 aKjOlbZ3c3nnTdlbNIFpINZSv+B5dCj57hfUR1ABuVkPocvrDN5UIDuG9uAnw+T3mKFE 5UQHKkiGbRYshnwdJzPiqmaBvh8/pXjmmYH6mM5CQujf5m3bJVLQKf0Vu13Ni+1JDEtd 3b1Vu+dIa2ZaN4HKeTRYym2kKDIL4ZHWJO/ftmhw/BiT70qv8p/fjYD5Ca5dX4Y3/abr I2VgEUcJfl4wssFtPK1ALN4Z5K8wNzq82Z4Fmw208kyzz+9afhkTh+lzX/PQcJoTALYr JF7g== X-Received: by 10.152.29.6 with SMTP id f6mr20115619lah.85.1437261059005; Sat, 18 Jul 2015 16:10:59 -0700 (PDT) Received: from localhost.localdomain (77-253-249-21.adsl.inetia.pl. [77.253.249.21]) by smtp.gmail.com with ESMTPSA id si3sm3992338lbb.32.2015.07.18.16.10.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 18 Jul 2015 16:10:58 -0700 (PDT) From: Sebastian Krzyszkowiak To: Ike Panhc Cc: platform-driver-x86@vger.kernel.org, Sebastian Krzyszkowiak Subject: [PATCH] ideapad-laptop: add alternative representation for Yoga 2 to DMI table Date: Sun, 19 Jul 2015 01:10:21 +0200 Message-Id: <1437261021-25632-1-git-send-email-dos@dosowisko.net> X-Mailer: git-send-email 2.4.6 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 76b5738..4241262 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -853,6 +853,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = { }, }, { + .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"),