hwmon: (nct7904) Read all SMI status registers in probe function
authorAmy Shih <amy.shih@advantech.com.tw>
Tue, 12 May 2020 02:25:23 +0000 (02:25 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 May 2020 14:23:11 +0000 (07:23 -0700)
commit6d44e43f225f96eea2e610f87070718032ad8aaa
tree544a2fcdb4eca4ac6c68bf17731fce846cf3fc7f
parentbcb543cc3d4034da3f3fd8bc4296a26dfeadf47d
hwmon: (nct7904) Read all SMI status registers in probe function

When nct7904 power up, it compares current sensor readings against the
default threshold immediately. This results in false alarms on startup.
Read all SMI status registers in probe function to clear the alarms.

Signed-off-by: Amy Shih <amy.shih@advantech.com.tw>
[groeck: Reworded description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct7904.c