From b5cc6d26583c826010729266142444af8b80a58f Mon Sep 17 00:00:00 2001 From: avg Date: Sat, 19 Sep 2009 08:56:28 +0000 Subject: intpm/sb700: force polling mode if configured interrupt is SMI instead of failing to attach --- sys/pci/intpm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/pci/intpm.c') diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c index 13404c8..1cbe75d 100644 --- a/sys/pci/intpm.c +++ b/sys/pci/intpm.c @@ -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; -- cgit v1.1