hwmon: (it87) Set second Super-IO chip in configuration mode
authorFrank Crawford <frank@crawford.emu.id.au>
Wed, 4 Jan 2023 06:09:26 +0000 (17:09 +1100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 3 Feb 2023 15:30:10 +0000 (07:30 -0800)
commitff9dedd2da87bb22fd687ef731c1114b82343f89
treed8034f90b461d6f5620d84c4dd61f1603098d684
parentd47e377c7b27e656cdf1dfd7297a195d3e68cd2b
hwmon: (it87) Set second Super-IO chip in configuration mode

On various Gigabyte AM4 boards (AB350, AX370), the second Super-IO chip
(IT8792E) needs to be in configuration mode before accessing the first
due to a bug in IT8792E which otherwise results in LPC bus access errors.
This needs to be done before accessing the first Super-IO chip since
the second chip may have been accessed prior to loading this driver.

The problem is also reported to affect IT8795E, which is used on X299
boards and has the same chip ID as IT8792E (0x8733). It also appears
to affect systems with IT8790E, which is used on some Z97X-Gaming boards
as well as Z87X-OC, and other more recent Gigabyte boards.

Signed-off-by: Frank Crawford <frank@crawford.emu.id.au>
Link: https://lore.kernel.org/r/20230104060926.619686-3-frank@crawford.emu.id.au
[groeck: Made description pass checkpatch]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c