Skip to content

Commit f9124f2

Browse files
onenowyij-intel
authored andcommitted
platform/x86: acer-wmi: Add predator_v4 module parameter
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 <onenowy@gmail.com> Link: https://lore.kernel.org/r/20240220080416.6395-1-onenowy@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent 20a36ec commit f9124f2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/platform/x86/acer-wmi.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ static bool has_type_aa;
276276
static u16 commun_func_bitmap;
277277
static u8 commun_fn_key_number;
278278
static bool cycle_gaming_thermal_profile = true;
279+
static bool predator_v4;
279280

280281
module_param(mailled, int, 0444);
281282
module_param(brightness, int, 0444);
@@ -284,6 +285,7 @@ module_param(force_series, int, 0444);
284285
module_param(force_caps, int, 0444);
285286
module_param(ec_raw_mode, bool, 0444);
286287
module_param(cycle_gaming_thermal_profile, bool, 0644);
288+
module_param(predator_v4, bool, 0444);
287289
MODULE_PARM_DESC(mailled, "Set initial state of Mail LED");
288290
MODULE_PARM_DESC(brightness, "Set initial LCD backlight brightness");
289291
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");
292294
MODULE_PARM_DESC(ec_raw_mode, "Enable EC raw mode");
293295
MODULE_PARM_DESC(cycle_gaming_thermal_profile,
294296
"Set thermal mode key in cycle mode. Disabling it sets the mode key in turbo toggle mode");
297+
MODULE_PARM_DESC(predator_v4,
298+
"Enable features for predator laptops that use predator sense v4");
295299

296300
struct acer_data {
297301
int mailled;
@@ -734,7 +738,9 @@ enum acer_predator_v4_thermal_profile_wmi {
734738
/* Find which quirks are needed for a particular vendor/ model pair */
735739
static void __init find_quirks(void)
736740
{
737-
if (!force_series) {
741+
if (predator_v4) {
742+
quirks = &quirk_acer_predator_v4;
743+
} else if (!force_series) {
738744
dmi_check_system(acer_quirks);
739745
dmi_check_system(non_acer_quirks);
740746
} else if (force_series == 2490) {

0 commit comments

Comments
 (0)