mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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>
This commit is contained in:
parent
6509614fdd
commit
836ad11235
1 changed files with 5 additions and 2 deletions
|
@ -1060,8 +1060,11 @@ static int __init i8k_probe(void)
|
|||
i8k_get_dmi_data(DMI_BIOS_VERSION));
|
||||
}
|
||||
|
||||
if (dmi_check_system(i8k_blacklist_fan_type_dmi_table))
|
||||
if (dmi_check_system(i8k_blacklist_fan_type_dmi_table)) {
|
||||
pr_warn("broken Dell BIOS detected, disallow fan type call\n");
|
||||
if (!force)
|
||||
disallow_fan_type_call = true;
|
||||
}
|
||||
|
||||
strlcpy(bios_version, i8k_get_dmi_data(DMI_BIOS_VERSION),
|
||||
sizeof(bios_version));
|
||||
|
|
Loading…
Reference in a new issue