]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (nct6683) Enable EC access if disabled at boot
authorGuenter Roeck <linux@roeck-us.net>
Mon, 23 Apr 2018 01:16:54 +0000 (18:16 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 23 Apr 2018 13:12:26 +0000 (06:12 -0700)
commit96d2f8858f72ed19efc8df1cf2e62d5c0e8a4c82
tree5ddfa3160ecd187ce1a532c5913ccc35cf331c3b
parentf5918bc81e57734539ec52f5d9756336580d0881
hwmon: (nct6683) Enable EC access if disabled at boot

On Asrock Z370M Pro4, it was observed that EC access was disabled after
initially booting the system. As a result, the driver failed to load
with
nct6683: EC is disabled
After a suspend/resume cycle, the driver loaded correctly.
nct6683: Found NCT6683D or compatible chip at 0x2e:0xa20
nct6683 nct6683.2592: NCT6683D EC firmware version 1.0 build 07/18/16

Enable EC access after identifying the chip if disabled to fix the problem.
Warn the user that the data it reports may be unusable, similar to other
drivers for chips from Nuvoton.

Fixes: fc909e2d56e52 ("hwmon: Driver for NCT6683D")
Reported-by: Jonathan Sims <jonathan.625266@earthlink.net>
Tested-by: Jonathan Sims <jonathan.625266@earthlink.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6683.c