Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2640596pxa; Mon, 17 Aug 2020 15:12:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhkAAt8bl/2JlTlgAk2r0D+0Kvf9R2LBUytIDmaS/WeoEsOJsgB3Ol29wyHTFZTz9t6y5i X-Received: by 2002:a17:906:d187:: with SMTP id c7mr17608673ejz.196.1597702371295; Mon, 17 Aug 2020 15:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597702371; cv=none; d=google.com; s=arc-20160816; b=IuQk9j/TNlerzLBJS9kketStEp2RRp5sUXXY8TKIDNMOAiWj7zkSwz7khxR6LD3Y9u DLpP2pZHTIgdkgYGTUyLg8qtRqnKz6rOFUTsCRiVaKj91OxT01TEK6pYSruHwqvxUV2m 34F9l8R88/dOkJPqrQ4uF9O7tiIzpjaDiRwWmz8yVD7u9cRdhxBBvyvchNAwXYZHQNXg 1nAHB7dnrgDm02+b2tynb8SWyQRcB+yHCGp4Vh2AStNozua8SrgY2i0YEAYNFl/frrja iVTpTzw1PeoRRujBclYl6HSHUA4z+yn6a6J2ImddmibKTfK1mCKAsw+Sn2sUB1/ITjeJ Q/iw== 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=f/JkRmqJ+SKfA4rv0pxL6gWkY17ewLMXDt/4n+l1K/c=; b=e2iTMvb/j5zKiw+lyfRxcPljdG2CHSSINdEv2IY2CzlUgSqstn86htPGTKhfIQ8JeZ 0I9Np9AUF88McRnkJ2QMjuCttpGVdIH1oH5D5gEBFawhN3MTlaw22cA9+BLUGgDaLTxV PwDD3s0qXX/C2HXnPn+OzutPguxJzwaRj5vk2ZcG/4s0MHN5UvJ6/TczqD0xoglfnGCg 3q95XJ38YQM9oNQ+oyGZfA4GH+bPpiEc+Fu6BGuKV0lyoSmPe32IxxENGrxlUbet5ZvM pAKDJjaI2lvQyeZ0GE4PCcMcCYCuXCf6212tG5k1Tl6+9e541WrBeIbDi8vu4rtbYhfc nNeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ehLZhp7M; 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 bf22si12026981edb.475.2020.08.17.15.12.26; Mon, 17 Aug 2020 15:12:51 -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=ehLZhp7M; 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 S2387790AbgHQQvZ (ORCPT + 99 others); Mon, 17 Aug 2020 12:51:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:50288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388221AbgHQQCt (ORCPT ); Mon, 17 Aug 2020 12:02:49 -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 52D4120729; Mon, 17 Aug 2020 16:02:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680165; bh=k2GYCMWzh/jmM7oR8EjJp5e5VzW0nQwvXmFEn3MWkZ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ehLZhp7MK1GvJAsqSp7T3sy6EMbvsOLrw7eIwtEczHZfugTGvuV9zBAS4/JxnAY5u 9U7nDAXO/vf7XPrLHZmkTAdFMTkEXcxmYPyDus/NmkRNkCRd/sQyWkUcw+rDq2jd0d 1V0vwTDpI8iz84TjBhvGLT6+UOvQRreHRmo+COjw= 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.4 078/270] platform/x86: asus-nb-wmi: add support for ASUS ROG Zephyrus G14 and G15 Date: Mon, 17 Aug 2020 17:14:39 +0200 Message-Id: <20200817143759.645467943@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@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 0d42477946f32..59b78a181723b 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