Skip to content

Commit b44fd99

Browse files
committed
platform/x86: ideapad-laptop: Add module parameters to match DMI quirk tables
Add module parameters to allow setting the hw_rfkill_switch and set_fn_lock_led feature flags for testing these on laptops which are not on the DMI-id based allow lists for these 2 flags. Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 81a5603 commit b44fd99

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

drivers/platform/x86/ideapad-laptop.c

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,21 @@ MODULE_PARM_DESC(no_bt_rfkill, "No rfkill for bluetooth.");
155155

156156
static bool allow_v4_dytc;
157157
module_param(allow_v4_dytc, bool, 0444);
158-
MODULE_PARM_DESC(allow_v4_dytc, "Enable DYTC version 4 platform-profile support.");
158+
MODULE_PARM_DESC(allow_v4_dytc,
159+
"Enable DYTC version 4 platform-profile support. "
160+
"If you need this please report this to: [email protected]");
161+
162+
static bool hw_rfkill_switch;
163+
module_param(hw_rfkill_switch, bool, 0444);
164+
MODULE_PARM_DESC(hw_rfkill_switch,
165+
"Enable rfkill support for laptops with a hw on/off wifi switch/slider. "
166+
"If you need this please report this to: [email protected]");
167+
168+
static bool set_fn_lock_led;
169+
module_param(set_fn_lock_led, bool, 0444);
170+
MODULE_PARM_DESC(set_fn_lock_led,
171+
"Enable driver based updates of the fn-lock LED on fn-lock changes. "
172+
"If you need this please report this to: [email protected]");
159173

160174
/*
161175
* ACPI Helpers
@@ -1572,8 +1586,10 @@ static void ideapad_check_features(struct ideapad_private *priv)
15721586
acpi_handle handle = priv->adev->handle;
15731587
unsigned long val;
15741588

1575-
priv->features.set_fn_lock_led = dmi_check_system(set_fn_lock_led_list);
1576-
priv->features.hw_rfkill_switch = dmi_check_system(hw_rfkill_list);
1589+
priv->features.set_fn_lock_led =
1590+
set_fn_lock_led || dmi_check_system(set_fn_lock_led_list);
1591+
priv->features.hw_rfkill_switch =
1592+
hw_rfkill_switch || dmi_check_system(hw_rfkill_list);
15771593

15781594
/* Most ideapads with ELAN0634 touchpad don't use EC touchpad switch */
15791595
if (acpi_dev_present("ELAN0634", NULL, -1))

0 commit comments

Comments
 (0)