Skip to content

Commit 836ad11

Browse files
paligroeck
authored andcommitted
hwmon: (dell-smm) Enable broken functionality via "force" module param
Some Dell machines are broken and some functionality is disabled. Show warning into dmesg about this fact and allow user via "force" module param to override brokenness and enable broken functionality. Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 6509614 commit 836ad11

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎drivers/hwmon/dell-smm-hwmon.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,11 @@ static int __init i8k_probe(void)
10601060
i8k_get_dmi_data(DMI_BIOS_VERSION));
10611061
}
10621062

1063-
if (dmi_check_system(i8k_blacklist_fan_type_dmi_table))
1064-
disallow_fan_type_call = true;
1063+
if (dmi_check_system(i8k_blacklist_fan_type_dmi_table)) {
1064+
pr_warn("broken Dell BIOS detected, disallow fan type call\n");
1065+
if (!force)
1066+
disallow_fan_type_call = true;
1067+
}
10651068

10661069
strlcpy(bios_version, i8k_get_dmi_data(DMI_BIOS_VERSION),
10671070
sizeof(bios_version));

0 commit comments

Comments
 (0)