]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (sch56xx-common) Add automatic module loading on supported devices
authorArmin Wolf <W_Armin@gmx.de>
Mon, 31 Jan 2022 21:19:33 +0000 (22:19 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:17 +0000 (17:03 -0800)
commita083f75fc2e1e1b3d1fe40c21be103b636922730
treef2c1103523aaf6740e2b01a319a68e96b9eeac73
parentc1d161000aaec2894e7dc2fa6dbd8232500f137e
hwmon: (sch56xx-common) Add automatic module loading on supported devices

This patch enables the sch56xx-common module to get automatically
loaded on supported machines.
If a machine supports Fujitsu's SCH56XX-based hardware monitoring
solutions, it contains a "Antiope"/" Antiope" dmi onboard device
in case of the sch5627 or a "Theseus"/" Theseus" dmi onboard device
in case of the sch5636.
Since some machines like the Esprimo C700 have a seemingly faulty
DMI table containing both onboard devices, the driver still needs
to probe for the individual superio chip, which in presence of at
least one DMI onboard device however can be considered safe.
Also add a module parameter allowing for bypassing the
DMI check.

Tested on a Fujitsu Esprimo P720.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20220131211935.3656-3-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sch56xx-common.c