Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2627493pxa; Mon, 17 Aug 2020 14:49:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZOj8u8IFrNxkaSbIP/tTnXJnsVI7TBkbmlG37Ak4klotF6Ppp306FIWwiqWcKybsqEsHo X-Received: by 2002:a05:6402:1a23:: with SMTP id be3mr17438757edb.138.1597700986975; Mon, 17 Aug 2020 14:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597700986; cv=none; d=google.com; s=arc-20160816; b=fFw6Mks16SY+iNZn/iqg4GlvDg47AiHemU6yQxR+xwPR7+fuGS0bxH0JCNcrsFX8Tb wlARUqoK7Q6LgAwQCDqzEZOxAZRS678sN87/uy3zjChF4WcaQDuoMZMfeznO/1tJ1ZPK RTejYNevQOr+qze8JZ6o9N6hvCNJgowHAbPUUJEOn/orA+w3cPYjK2RnZnvk+CqhBlCd vtREACVGkZtlaRrjE9oO1N+gtp4sGvmTg6dOPGqPO0snnDb46+XQ/hAvc1BurYqKfI0v p3mRI6jpkI+CF6NMYJGpwrPeTSOPz+FvRpaz7+86DwazohAV7IzceVygQp+9pZqyMqSe KtcQ== 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=K5o4CjXgz9pIRByLgCS8f8ek0SSW86h0ubXtSAlCfHI=; b=dNH1zO/w+gtaDBMhtSoPZyYmKcHjGA1ZGELa/UxIBjIs1UR+z5y4u4WM7qbiSvloAm Mv5B3XHbiOxhcMDSsG+mZ+mg6obP04pSQqmJnPy3D8rqAcCvM4Bd8YcfSEAxdAIEI2iY n0C1ySBkDZ06PUPZ+b6R/MhiDPSeflIGJYqLLW1zzRDi6OUquHKynQLG/V/MDn2/GfTu z3JoyDlzl6065e3cZiKCN5VuzU1y7Ih7AnZ2dFZX6YYy5aLMbGNqYZuaR8lA/Mr+dSFw aPXQIHBQcsVzgJiRduAIm6WDPeuFtnBOuHoktl+8bERu+8otVsA4nDwPcmFJElaVDzeQ hGQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wQxv5VQi; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si11203653edv.566.2020.08.17.14.49.23; Mon, 17 Aug 2020 14:49:46 -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=wQxv5VQi; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729145AbgHQP1A (ORCPT + 99 others); Mon, 17 Aug 2020 11:27:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:57626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729706AbgHQPY6 (ORCPT ); Mon, 17 Aug 2020 11:24:58 -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 1F84623788; Mon, 17 Aug 2020 15:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597677897; bh=IHXnv5gZCelNCtUHzOcPZ5aYEKPQvdmbdCnL6d6/pbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wQxv5VQihgEZaGlXtaWLik2MoFeVcIHL78V7+xfNQfJx4Xu3dSCM5tQpDmciAahdC iGXJUbCPoMLBXNP5jMB427h2rpeqA5C3zK55VNcsZXJtinP0Jx6QWet4STCWVtVxXU 5vBpJUsMQwtrVrfm0K4qUmF10DHnLbqcYpS8hhzo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Armas Spann , Andy Shevchenko , Sasha Levin Subject: [PATCH 5.8 121/464] platform/x86: asus-nb-wmi: add support for ASUS ROG Zephyrus G14 and G15 Date: Mon, 17 Aug 2020 17:11:14 +0200 Message-Id: <20200817143839.606276486@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@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: Armas Spann [ Upstream commit 13bceda68fb9ef388ad40d355ab8d03ee64d14c2 ] Add device support for the new ASUS ROG Zephyrus G14 (GA401I) and G15 (GA502I) series. This is accomplished by two new quirk entries (one per each series), as well as all current available G401I/G502I DMI_PRODUCT_NAMEs to match the corresponding devices. Signed-off-by: Armas Spann Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/platform/x86/asus-nb-wmi.c | 82 ++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index 8c4d00482ef06..6c42f73c1dfd3 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c @@ -110,6 +110,16 @@ static struct quirk_entry quirk_asus_forceals = { .wmi_force_als_set = true, }; +static struct quirk_entry quirk_asus_ga401i = { + .wmi_backlight_power = true, + .wmi_backlight_set_devstate = true, +}; + +static struct quirk_entry quirk_asus_ga502i = { + .wmi_backlight_power = true, + .wmi_backlight_set_devstate = true, +}; + static int dmi_matched(const struct dmi_system_id *dmi) { pr_info("Identified laptop model '%s'\n", dmi->ident); @@ -411,6 +421,78 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_forceals, }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. GA401IH", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "GA401IH"), + }, + .driver_data = &quirk_asus_ga401i, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. GA401II", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "GA401II"), + }, + .driver_data = &quirk_asus_ga401i, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. GA401IU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "GA401IU"), + }, + .driver_data = &quirk_asus_ga401i, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. GA401IV", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "GA401IV"), + }, + .driver_data = &quirk_asus_ga401i, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. GA401IVC", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "GA401IVC"), + }, + .driver_data = &quirk_asus_ga401i, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. GA502II", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "GA502II"), + }, + .driver_data = &quirk_asus_ga502i, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. GA502IU", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "GA502IU"), + }, + .driver_data = &quirk_asus_ga502i, + }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. GA502IV", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "GA502IV"), + }, + .driver_data = &quirk_asus_ga502i, + }, {}, }; -- 2.25.1