Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2009 05:45:46 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200091 - head/sys/dev/ichsmb
Message-ID:  <200912040545.nB45jkjT043949@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Fri Dec  4 05:45:46 2009
New Revision: 200091
URL: http://svn.freebsd.org/changeset/base/200091

Log:
  ichsmb: drop default attachment to generic smbus hardware
  
  Attach only to devices known to be supported.
  This change overrided and undoes r200053.
  
  Suggested by:	jhb
  MFC after:	2 weeks (only to stable/8)

Modified:
  head/sys/dev/ichsmb/ichsmb_pci.c

Modified: head/sys/dev/ichsmb/ichsmb_pci.c
==============================================================================
--- head/sys/dev/ichsmb/ichsmb_pci.c	Fri Dec  4 05:31:40 2009	(r200090)
+++ head/sys/dev/ichsmb/ichsmb_pci.c	Fri Dec  4 05:45:46 2009	(r200091)
@@ -67,7 +67,6 @@ __FBSDID("$FreeBSD$");
 #include <dev/ichsmb/ichsmb_reg.h>
 
 /* PCI unique identifiers */
-#define VENDORID_INTEL			0x8086
 #define ID_82801AA			0x24138086
 #define ID_82801AB			0x24238086
 #define ID_82801BA			0x24438086
@@ -172,13 +171,6 @@ ichsmb_pci_probe(device_t dev)
 		device_set_desc(dev, "Intel 631xESB/6321ESB (ESB2) SMBus controller");
 		break;
 	default:
-		if (pci_get_vendor(dev) == VENDORID_INTEL
-		    && pci_get_class(dev) == PCIC_SERIALBUS
-		    && pci_get_subclass(dev) == PCIS_SERIALBUS_SMBUS
-		    && pci_get_progif(dev) == PCIS_SERIALBUS_SMBUS_PROGIF) {
-			device_set_desc(dev, "Intel SMBus controller");
-			return (BUS_PROBE_DEFAULT); /* XXX */
-		}
 		return (ENXIO);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912040545.nB45jkjT043949>