OpenCloudOS-Kernel/drivers/hwmon/occ
Eddie James 849b0156d9 hwmon: (occ) Delay hwmon registration until user request
Instead of registering the hwmon device at probe time, use the
existing "occ_active" sysfs file to control when the driver polls
the OCC for sensor data and registers with hwmon. The reason for
this change is that the SBE, which is the device by which the
driver communicates with the OCC, cannot handle communications
during certain system state transitions, resulting in
unrecoverable system errors.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20220427140443.11428-1-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2022-05-20 10:57:06 -07:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
common.c hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00
common.h hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00
p8_i2c.c hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00
p9_sbe.c hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00
sysfs.c hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00