intpm/sb700: force polling mode if configured interrupt is SMI

instead of failing to attach
This commit is contained in:
Andriy Gapon 2009-09-19 08:56:28 +00:00
parent afb9e5cf2e
commit d2f7d5c975

View File

@ -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;