Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Sep 2009 08:56:28 +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: r197325 - head/sys/pci
Message-ID:  <200909190856.n8J8uSnf018569@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Sat Sep 19 08:56:28 2009
New Revision: 197325
URL: http://svn.freebsd.org/changeset/base/197325

Log:
  intpm/sb700: force polling mode if configured interrupt is SMI
  
  instead of failing to attach

Modified:
  head/sys/pci/intpm.c

Modified: head/sys/pci/intpm.c
==============================================================================
--- head/sys/pci/intpm.c	Sat Sep 19 08:13:10 2009	(r197324)
+++ head/sys/pci/intpm.c	Sat Sep 19 08:56:28 2009	(r197325)
@@ -167,6 +167,12 @@ intsmb_attach(device_t dev)
 	    sc->poll == 0 ? "enabled" : "disabled");
 	printf("revision %d\n", pci_read_config(dev, PCI_REVID_SMB, 1));
 
+	if (!sc->poll && intr == PCI_INTR_SMB_SMI) {
+		device_printf(dev,
+		    "using polling mode when configured interrupt is SMI\n");
+		sc->poll = 1;
+	}
+
 	if (sc->poll)
 	    goto no_intr;
 



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