Author: avg
Date: Wed Sep 21 16:23:31 2016
New Revision: 306121
URL: https://svnweb.freebsd.org/changeset/base/306121

Log:
  MFC r305603: intpm: do not try attaching to unsupported controller revisions

Modified:
  stable/10/sys/pci/intpm.c
Directory Properties:
  stable/10/   (props changed)
  stable/10/sys/gnu/dts/   (props changed)

Modified: stable/10/sys/pci/intpm.c
==============================================================================
--- stable/10/sys/pci/intpm.c   Wed Sep 21 16:19:27 2016        (r306120)
+++ stable/10/sys/pci/intpm.c   Wed Sep 21 16:23:31 2016        (r306121)
@@ -104,9 +104,12 @@ intsmb_probe(device_t dev)
                device_set_desc(dev, "ATI IXP400 SMBus Controller");
                break;
        case 0x43851002:
-       case 0x780b1022:        /* AMD Hudson */
-               device_set_desc(dev, "AMD SB600/7xx/8xx SMBus Controller");
-               /* XXX Maybe force polling right here? */
+               device_set_desc(dev, "AMD SB600/7xx/8xx/9xx SMBus Controller");
+               break;
+       case 0x780b1022:        /* AMD FCH */
+               if (pci_get_revid(dev) < 0x40)
+                       return (ENXIO);
+               device_set_desc(dev, "AMD FCH SMBus Controller");
                break;
        default:
                return (ENXIO);
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to