CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2020/01/20 23:37:25

Modified files:
        sys/dev/pci    : piixpm.c piixreg.h 

Log message:
Fix support for additional I2C busses in piixpm(4) for older SB800 SMBus
controllers. Devices where SB800_PMREG_SMB0SELEN returns 0 will only use
the first port.

Also clean up the PCI_PRODUCT_AMD_HUDSON2_SMB detection a bit more.
The PCI ID 1022:780b is used by AMD Bolton FCH and AMD Family 16h
model 30h-3fh. The problem is the former uses old register layout while
the latter uses the new FCH layout. Make sure AMD Bolton FCH uses the
old code path.

Finally fix a confusion about the IRQ / SMI detection. The logic was
reversed since if the bit is 0 then SMI is used.

This should fix attaching sensors 4 times on old AMD machines.
OK kettenis@

Reply via email to