Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5650850img; Wed, 27 Mar 2019 12:27:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjLAk4Z067fWbqY47pmUgr7H7aEMBPsichwN8oeGLzwWtwyHSOZrCP9QLK/nF6titC1nqv X-Received: by 2002:a17:902:9a0b:: with SMTP id v11mr38657811plp.194.1553714850178; Wed, 27 Mar 2019 12:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553714850; cv=none; d=google.com; s=arc-20160816; b=oHNnTQPe+tUsvN09MgxehjuHBzzOhRMVxiJonIzLGwC/CAozxpz9Ab7fFIjwqZfz5D +ZQAhexFD/csgfNSPZdJhuraUaFoAlKvQTo46UAOE0Q5qB0xq/rsTS8FC45H+XqC0C5m izwABg6X+rleGEYL1oVdPCBhNUFGXcdAa2qPbcflMR1dNdKXaHZVKDIBnL6OomBp7e/F 0iiqhkiJmoZ36sIJ2BODSZYzxgo58VtfyQOSm3Cjxoqam/JBWBATwHpG+SGJX5vhyIe1 WzTrVdJVjw/zjucEwEoeIVPEPZPALWWeu4/R9B2rX/K7EFYvTcEtpFlCWyoZjQGm6tL0 qkng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5DZUzeNcpBMOefNAnuCtQTZR9M2hcO2pcpzO8SXAZzk=; b=S7fIhXEWLbCBAc3zemAhSxn7VW599xusCLXz/SGpJut/dbB2RC/jXk+PzY0RHdYi5m LQNPxv1s8M9DuYOZyNWuRA+imquVyw+K4HfBcWzKI9oCERFiEC2B0gR+Vk7sj4b0utWl kiJAwxJMNFLw5ybXzgzj0kVP8h83POTEMdGYYOyd1ZJjaeu+AAD13xt3bHyAek2as/hw cqvumdicMQKhVf9AM0GStpWdH0y84jNURKbpg5VIWSoLPGginl+K2R/6/8/0XL6L0+Au fDykwEQFHLab1vi5bTWfK+V9XUzBW6nCRDyo3XA+LJIO7frm9xY9n+HQs6Fda1yrbHSQ 8R1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oXxT3JxR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si18783275pgh.255.2019.03.27.12.27.15; Wed, 27 Mar 2019 12:27:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oXxT3JxR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387700AbfC0T0e (ORCPT + 99 others); Wed, 27 Mar 2019 15:26:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:46000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387530AbfC0SFC (ORCPT ); Wed, 27 Mar 2019 14:05:02 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D26402177E; Wed, 27 Mar 2019 18:05:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553709901; bh=PmCfeuNZEXhjKcbb/lgZr2WT2SI5XaUTxSyJhKXAmJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oXxT3JxRr56DBUpkjj6PpL44toE053974PUswdJIC2GVHrkNygIZvvFY8hbBCqPum V7jSnJZgydYfCIcw5ycZ/G5Z8zRq+Zue0jxsvxZYjxzBnAuCkcCVZUaey/j8YmKvmn wSQMMemKqdHY4s5CE33fJ7aP0pKbSK4IXtpGOvBg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yang Fan , Darren Hart , Sasha Levin , platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 5.0 099/262] platform/x86: ideapad-laptop: Fix no_hw_rfkill_list for Lenovo RESCUER R720-15IKBN Date: Wed, 27 Mar 2019 13:59:14 -0400 Message-Id: <20190327180158.10245-99-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Fan [ Upstream commit 4d9b2864a415fec39150bc13efc730c7eb88711e ] Commit ae7c8cba3221 ("platform/x86: ideapad-laptop: add lenovo RESCUER R720-15IKBN to no_hw_rfkill_list") added DMI_MATCH(DMI_BOARD_NAME, "80WW") for Lenovo RESCUER R720-15IKBN. But DMI_BOARD_NAME does not match 80WW on Lenovo RESCUER R720-15IKBN, thus cause Wireless LAN still be hard blocked. On Lenovo RESCUER R720-15IKBN: ~$ cat /sys/class/dmi/id/sys_vendor LENOVO ~$ cat /sys/class/dmi/id/board_name Provence-5R3 ~$ cat /sys/class/dmi/id/product_name 80WW ~$ cat /sys/class/dmi/id/product_version Lenovo R720-15IKBN So on Lenovo RESCUER R720-15IKBN: DMI_SYS_VENDOR should match "LENOVO", DMI_BOARD_NAME should match "Provence-5R3", DMI_PRODUCT_NAME should match "80WW", DMI_PRODUCT_VERSION should match "Lenovo R720-15IKBN". Fix it, and in according with other entries in no_hw_rfkill_list, use DMI_PRODUCT_VERSION instead of DMI_BOARD_NAME. Fixes: ae7c8cba3221 ("platform/x86: ideapad-laptop: add lenovo RESCUER R720-15IKBN to no_hw_rfkill_list") Signed-off-by: Yang Fan Signed-off-by: Darren Hart (VMware) Signed-off-by: Sasha Levin --- drivers/platform/x86/ideapad-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 1589dffab9fa..8b53a9ceb897 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -989,7 +989,7 @@ static const struct dmi_system_id no_hw_rfkill_list[] = { .ident = "Lenovo RESCUER R720-15IKBN", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), - DMI_MATCH(DMI_BOARD_NAME, "80WW"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo R720-15IKBN"), }, }, { -- 2.19.1