]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit553d9599eddcf7b6f7579409db97171c9bbff6df
tree544a2fcdb4eca4ac6c68bf17731fce846cf3fc7f
parent3279d2c31f9469ce0158dd836a272d61ea723f34
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