This patch set contains miscellaneous improvements for the dell_smm_hwmon driver. The first two patches allow for testing known SMM code pairs for automatic fan mode enable/disable without having to manually edit and recompile the module, which makes testing easier and is compatible with Secure Boot/Kernel Lockdown. Because of the later, users cannot specify arbitrary SMM codes, but are limited to two promising code pairs (for now). The fifth patch improves the inline assembly code, so saving/restoring the registers is done by the compiler, including the flags register. As a side effect, it now works on both 32 and 64 bit x86, while being faster too. The remaining patches are smaller improvments. All patches have been tested on a Dell Inspiron 3505. Armin Wolf (7): hwmon: (dell-smm) Allow for specifying fan control method as module parameter hwmon: (dell-smm) Add additional fan mode command combination hwmon: (dell-smm) Make fan/temp sensor number a u8 hwmon: (dell-smm) Improve temperature sensors detection hwmon: (dell-smm) Improve assembly code hwmon: (dell-smm) Add SMM interface documentation hwmon: (dell-smm) Reword and mark parameter "force" as unsafe .../admin-guide/kernel-parameters.txt | 3 + Documentation/hwmon/dell-smm-hwmon.rst | 202 +++++++++++++++++- drivers/hwmon/dell-smm-hwmon.c | 178 +++++++-------- 3 files changed, 290 insertions(+), 93 deletions(-) -- 2.30.2