Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1585700

[PATCH] ideapad-laptop: Add Lenovo ideapad 310-15IKB to no_hw_rfkill dmi list

Path csiph.com!weretis.net!feeder4.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod
From Sven Rebhan <sven.rebhan@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] ideapad-laptop: Add Lenovo ideapad 310-15IKB to no_hw_rfkill dmi list
Date Tue, 21 Feb 2017 21:00:02 +0100
Message-ID <tdoLo-78e-21@gated-at.bofh.it> (permalink)
X-Original-To platform-driver-x86@vger.kernel.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=+jYF50CIqmVNQ1b9amSlcYLb0zisbVYu7X0sfo7GL0E=; b=q5GyRqrqTT5F6fS0xedA2gUjLXg0AjUwSS1V1jbLRBG+0M2IlvzG6vpDrfuySETs6X RdcrgbhspmSvQPVDns2FLKpg5P6GZlS76nVrXvVpNssj1LL41cVawdKPoMQ5Lc9U4g8x kYRSGVVIOsqRo2K35ULQfRMqhzZEYrZzoavTLaaMpaUx/5z+tujJOm/ks8l6Ge5S4Y6s kBxlucLe6c5nNjmcEWpzM3jOfyeEOhfWBgng2e7pRNkL4TgFoxnDb+l8kHbXIWj5vIG9 D1uWMSkSuAWQWqh+7GYIahuT9oc1XctHNpKRv7/AfpECtexDlbCAXfT0SBzRDbH0ZsCb GHqg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=+jYF50CIqmVNQ1b9amSlcYLb0zisbVYu7X0sfo7GL0E=; b=PeXjXWRC2it6PO7cqwfo8qCJeWrSbSKD50N+/utUpSwvO040lcUK6ImgVqpl9pqovK aMfvw0Tam79z0uhFGt/n4DRG2zkb9enozJl3Su9zSS8klSbYFFqEwwYd5UL6KLFEAstv 95/Pn5c1zjK6uWxpSSJrDLcpm4INH7Ve3lQ5PQG8YMWm8uN3Xfdn+f1FEKs2k08Ufwro tSX/5PJzaNy2MlpMRx/XHh3w20iPQT03+NF2fzMrTYNQAv+ov9FMUpdVVQRtxZD/sw7t OU/oBTgh8CihAgy+E9GBz48O5RiAJ6lkMud/nUhbXDGgIEAt8YT1U4VBzvXfdYq4BMum j0eA==
X-Gm-Message-State AMke39kMLHisCFK+8ikhhuSg+3sUAC6ttbi709SOWNCJ+k+VIDxXcyRDYKJLnJde9obh0A==
X-Received by 10.28.59.212 with SMTP id i203mr14817341wma.41.1487706835752; Tue, 21 Feb 2017 11:53:55 -0800 (PST)
X-Google-Original-From Sven Rebhan <Sven.Rebhan@googlemail.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.7.2 (2016-11-26)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
X-Original-Cc Ike Panhc <ike.pan@canonical.com>, Darren Hart <dvhart@infradead.org>, Andy Shevchenko <andy@infradead.org>, linux-kernel@vger.kernel.org
X-Original-Date Tue, 21 Feb 2017 20:53:48 +0100
X-Original-Message-ID <20170221195348.GA4998@Hugin.localdomain>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1585700

Show key headers only | View raw


Like other Lenovo models the Lenovo ideapad 310-15IKB does not have a
hw rfkill switch. This results in hard-blocked radios after boot,
resulting in always blocked radios rendering them unusable.

The attached patch adds the ideapad 310-15IKB to the no_hw_rfkill
dmi list and allows using the built-in radios.

Signed-off-by: Sven Rebhan <Sven.Rebhan@googlemail.com>
---
 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 f46ece2ce3c4..cc6d91e18683 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -872,6 +872,13 @@ static const struct dmi_system_id no_hw_rfkill_list[] = {
 		},
 	},
 	{
+		.ident = "Lenovo ideapad 310-15IKB",
+		.matches = {
+		        DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		        DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad 310-15IKB"),
+		},
+	},
+	{
 		.ident = "Lenovo ideapad Y700-15ACZ",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-- 
2.11.1

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] ideapad-laptop: Add Lenovo ideapad 310-15IKB to no_hw_rfkill  dmi list Sven Rebhan <sven.rebhan@gmail.com> - 2017-02-21 21:00 +0100

csiph-web