Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp143283ybm; Tue, 26 May 2020 12:53:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqW9BHyCh+GAWn+HfMZ3Ao+lrD9mLAY9Cw8rLbnM1QSNxd3p5NViaKVgAQVNvdvkISCB1i X-Received: by 2002:a05:6402:1770:: with SMTP id da16mr20806703edb.122.1590522808273; Tue, 26 May 2020 12:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590522808; cv=none; d=google.com; s=arc-20160816; b=JTRP0LPiDP0zDGFccGVSKrpRgdEtLewgDl0Se3zJi3SOEKJWKetn+8lVojEMmAnZ0d Jgxpvt9LvPn8ZGgdeD5qdeyx2xMZaEQKU3Z+C50O57mbE3ZIF9of4uDmIYsYsci9Lgyn +rwDWC8ilNtLrkOCzPUXT21EIhZ12wW/caHV7BVakKURnItKD1GXzn5t44SEwcwauieT Mvr6NhzPElziponm39gsBlZXpxwoc4TbpVFB1hVMbmyXhZIPS0w5i0JNvRFFp5ZRpX2j 1+ZxGGPY7hDI9OgSO4gIUYXyTniBIXporYLpdq77LjGZ/TyUV2MqPtUJuRYmhA7d+m1v 5Ctg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ml90r5WiGMydCDRRRYkY9fck3wer71VTi9VSazJDAaM=; b=i5QvJkv2+daFHX91G+9whaX5Ru7yGbeqbT0ZoTqF5sud9QBCdRRerliSQQzTo6ed1W 8H0Czz9AU8LXlRLP5So035t6arj7JfJRi26V2EobNXaUc3W5NSFgdJ4kmNEfcfqhc0Qx 2pizOts2eG+9CaM68t5X709Er/nu7lxYkbiEZCdx4Uoh5LJ5vua5dWdVjCRoOv9h+dDv aPZaHL0QRcaMLftUpOKlq+tM0giNF1SVw3mSgGWGa+a0w4ywXVmBCUQmavsv24URxHOu 88151XssaX4QaCb2BdzhctItLUQskDm2odrk2x74yU9j3XSbmbO9gEcOZPmDkyvsW9/3 XB2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P2qMtUSY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si493539edc.180.2020.05.26.12.53.05; Tue, 26 May 2020 12:53:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P2qMtUSY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390217AbgEZS55 (ORCPT + 99 others); Tue, 26 May 2020 14:57:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:51248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389465AbgEZS5z (ORCPT ); Tue, 26 May 2020 14:57:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1942A2084C; Tue, 26 May 2020 18:57:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590519474; bh=467r1v84mpEACB9HxeCyqDjhOTBfrxZ9oE3s2JB/Mps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P2qMtUSYHwRR4Y9DKGjzPcOnydlI7MS4M6P1Xrwnb4HoIilmcJdcxOxgJW/rVyutN r2qWtH1Aq2dqJT6mVlPHP0Rf6oD+41wPmT4Es9J0s5VOfNRqv6fDzEn5OnGM7BFOIJ yuNGWytrMVvlzopVdKPKC5CsV1rV1iRZbeKhJTOc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Andy Shevchenko , Sasha Levin Subject: [PATCH 4.9 18/64] platform/x86: asus-nb-wmi: Do not load on Asus T100TA and T200TA Date: Tue, 26 May 2020 20:52:47 +0200 Message-Id: <20200526183918.966243013@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200526183913.064413230@linuxfoundation.org> References: <20200526183913.064413230@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 3bd12da7f50b8bc191fcb3bab1f55c582234df59 ] asus-nb-wmi does not add any extra functionality on these Asus Transformer books. They have detachable keyboards, so the hotkeys are send through a HID device (and handled by the hid-asus driver) and also the rfkill functionality is not used on these devices. Besides not adding any extra functionality, initializing the WMI interface on these devices actually has a negative side-effect. For some reason the \_SB.ATKD.INIT() function which asus_wmi_platform_init() calls drives GPO2 (INT33FC:02) pin 8, which is connected to the front facing webcam LED, high and there is no (WMI or other) interface to drive this low again causing the LED to be permanently on, even during suspend. This commit adds a blacklist of DMI system_ids on which not to load the asus-nb-wmi and adds these Transformer books to this list. This fixes the webcam LED being permanently on under Linux. Signed-off-by: Hans de Goede Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/platform/x86/asus-nb-wmi.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index 0fd7e40b86a0..8137aa343706 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c @@ -561,9 +561,33 @@ static struct asus_wmi_driver asus_nb_wmi_driver = { .detect_quirks = asus_nb_wmi_quirks, }; +static const struct dmi_system_id asus_nb_wmi_blacklist[] __initconst = { + { + /* + * asus-nb-wm adds no functionality. The T100TA has a detachable + * USB kbd, so no hotkeys and it has no WMI rfkill; and loading + * asus-nb-wm causes the camera LED to turn and _stay_ on. + */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100TA"), + }, + }, + { + /* The Asus T200TA has the same issue as the T100TA */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T200TA"), + }, + }, + {} /* Terminating entry */ +}; static int __init asus_nb_wmi_init(void) { + if (dmi_check_system(asus_nb_wmi_blacklist)) + return -ENODEV; + return asus_wmi_register_driver(&asus_nb_wmi_driver); } -- 2.25.1