mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
hwmon: (occ) Delay hwmon registration until user request
[ Upstream commit849b0156d9] 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> Stable-dep-of:70e76e700f("hwmon: occ: validate poll response sensor blocks") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ce63d3d0de
commit
bc8a327267
5 changed files with 156 additions and 90 deletions
Loading…
Add table
Add a link
Reference in a new issue