Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp17925lqz; Fri, 29 Mar 2024 07:18:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXj0Kw2Qu81UzgUvpCLtmVt6fObxiVw6n5IgXD2c93/3cD9oGZ6oMkBnyAo2Ly4a0PXMRHil3/aBvelWrDiH+Z3/8SG8KA2zwQJ62/apg== X-Google-Smtp-Source: AGHT+IFNyKLKvHprhYnQha6VwGdNx1/+RXoP0Vi2UuFNZTDpQNDRqva7TtOfsyJOOFstbzNDw0ek X-Received: by 2002:a17:902:ea01:b0:1e2:1915:2433 with SMTP id s1-20020a170902ea0100b001e219152433mr2905716plg.23.1711721891043; Fri, 29 Mar 2024 07:18:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711721891; cv=pass; d=google.com; s=arc-20160816; b=i+Zh75rVnTphEwsE4p5F2iJEzaJ6XCj2i39t7ZpSfv+/tsbyOVDbIL1/6CZl6mvlEB WPHNZLOhHmyFO+Ui7+hopJXGIos1OfTCyyeio3najeZS3JfTJ408abbN4FSFqELwSSsU DVFit3m9LEJlJHenfOsdrbUn/8ivHEGuyR1wlxD34rqtyTdZKjlRVI2/6MPd/Bp/V2I1 yLKlrD7R/b+ajxl0N/xPGttXVZb8mvukiidR2GaiqZRG8r+IhH9kRmiFvvgqmCsD0XZ0 nXph+mZIJihmjtwEbRcLEios7ncPsdHBxH6yc3RIihYYA03To6fX7lsbxee5YntZ/zOR 5NEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2rkIhS3+/gutLeMox8XP9ZJUGdz4s607df9ppY5d2rU=; fh=XOI14FpuXZR0kiKT5prqLJSUJ+fgc01uYXFw5HuBKFE=; b=DmkG+Gv/aEiZTOECtytfRcNvE6HMjXDVIV3esl+uF0UtkFaaKWAJaRzgG2RzoB2pm5 iEu0vlAtHU2GO3y0Kce22L2MxMH9WeQKJPcloCNrqpSQUBWoivSl7W3BFNEvtcVnSWTS g7VxodocVBozxqBpSo/JuX7PV+0XAEZ+fGWdOClssKbQNVobRRzKdLm4Gtr3sNYJxI/f sYpl59eqzzdMDrxRmLAVW5bB5mt4xSiPEhFtty9Y7PJ/HKBO5nbz6GbZdk98sDxcLLm7 0A+waInFVgtJVsrf2690cS7x7G/mf1Ul9aapnoMRaColmDnmnE3PncC4asX+iyqmZBqR z7aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=idYjUPli; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124803-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id lm6-20020a170903298600b001db5a8f9316si3782676plb.152.2024.03.29.07.18.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 07:18:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124803-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=idYjUPli; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124803-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BCC29B2B7D1 for ; Fri, 29 Mar 2024 13:55:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C2B5190694; Fri, 29 Mar 2024 12:42:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="idYjUPli" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F7D2190672; Fri, 29 Mar 2024 12:42:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716162; cv=none; b=eu5qPv/ElbyUz++IXUHTW2NnuDmY61YpxGODSWKhFmMQ48uVn9twob+Yx4U0pTf4md4j2Q1KHL7xuDi/Hci3YWTXG3mHfKLBt9lNk51NrdL5nwUUH6JndIxdxRyxuc7052HBa04tBv9MQKMrpJ67MN1maXylM8G+gHW6dTFsJBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716162; c=relaxed/simple; bh=zBlT7bR9VLPwwSZRmRbDyaaaSQltXRwQNSVd2zkZ1BA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YELxcWx4z6pSnf8kPiVNZyVNxANp9Cp3CMvImlLTYVoXoBXWnXwT56W0AXXhRQQTwbH5rav678Kz441uvSlBssN9hXg750vUf52MhMVRfQdsDLfaCFYj4tz6Z+zFF58PUyl5UAgem9JlLVyZcHrdx8b3bEecwyT9pWOmE0GSANY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=idYjUPli; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 658ECC43390; Fri, 29 Mar 2024 12:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716161; bh=zBlT7bR9VLPwwSZRmRbDyaaaSQltXRwQNSVd2zkZ1BA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=idYjUPli3CSegQdnT+q0w+doPxgBtV/wSZFOIfdbE8/2qObbsvJTj/ABefdsP0Sgt AqdycdA9F8N9sR4dZmVv9uOKbJ4LzIc4bhlIn1wWhM0b7jLPdxU2wdypAw9WZWjCcJ crRu5Vwdyu+nH+q3xF8gQ9I8T7QqyscmPW9wjUrx/Vbl2GILRpSppcIf7lC3gy3i2R ocAEvAUuXgDYnYZ6Mk3Rz/Lj/Fw6fmjPZD8ey1/Kq4/f0zB8N+/L+3OQbjjxulN6Ah sIKCrYyZtqwK6dE8bT/o8zHpUTZtApb8BtAlDmdPYqRYxllMI7CIHC0/wCf01oog23 6AMdStHCax7YA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: SungHwan Jung , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Sasha Levin , jlee@suse.com, hdegoede@redhat.com, platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 6.8 92/98] platform/x86: acer-wmi: Add predator_v4 module parameter Date: Fri, 29 Mar 2024 08:38:03 -0400 Message-ID: <20240329123919.3087149-92-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.2 Content-Transfer-Encoding: 8bit From: SungHwan Jung [ Upstream commit f9124f2a454a6f1edb4eae9f0646b1a61fd74dba ] This parameter allows predator laptop users to test and use features (mode button, platform profile, fan speed monitoring) without adding model names to acer_quirks and compiling kernel. Signed-off-by: SungHwan Jung Link: https://lore.kernel.org/r/20240220080416.6395-1-onenowy@gmail.com Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Sasha Levin --- drivers/platform/x86/acer-wmi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 771b0ce34c8f9..ee2e164f86b9c 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -276,6 +276,7 @@ static bool has_type_aa; static u16 commun_func_bitmap; static u8 commun_fn_key_number; static bool cycle_gaming_thermal_profile = true; +static bool predator_v4; module_param(mailled, int, 0444); module_param(brightness, int, 0444); @@ -284,6 +285,7 @@ module_param(force_series, int, 0444); module_param(force_caps, int, 0444); module_param(ec_raw_mode, bool, 0444); module_param(cycle_gaming_thermal_profile, bool, 0644); +module_param(predator_v4, bool, 0444); MODULE_PARM_DESC(mailled, "Set initial state of Mail LED"); MODULE_PARM_DESC(brightness, "Set initial LCD backlight brightness"); MODULE_PARM_DESC(threeg, "Set initial state of 3G hardware"); @@ -292,6 +294,8 @@ MODULE_PARM_DESC(force_caps, "Force the capability bitmask to this value"); MODULE_PARM_DESC(ec_raw_mode, "Enable EC raw mode"); MODULE_PARM_DESC(cycle_gaming_thermal_profile, "Set thermal mode key in cycle mode. Disabling it sets the mode key in turbo toggle mode"); +MODULE_PARM_DESC(predator_v4, + "Enable features for predator laptops that use predator sense v4"); struct acer_data { int mailled; @@ -734,7 +738,9 @@ enum acer_predator_v4_thermal_profile_wmi { /* Find which quirks are needed for a particular vendor/ model pair */ static void __init find_quirks(void) { - if (!force_series) { + if (predator_v4) { + quirks = &quirk_acer_predator_v4; + } else if (!force_series) { dmi_check_system(acer_quirks); dmi_check_system(non_acer_quirks); } else if (force_series == 2490) { -- 2.43.0