xhci(4): Don't allocate an IRQ vector if hw.usb.xhci.use_polling=1 is set.

This is useful for debugging purposes.

MFC after:	1 week
Sponsored by:	NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2022-10-20 19:21:53 +02:00
parent e32e6e42fa
commit 3346ae0d24

View File

@ -402,7 +402,7 @@ xhci_pci_attach(device_t self)
break;
}
if (sc->sc_irq_res != NULL) {
if (sc->sc_irq_res != NULL && xhci_use_polling() == 0) {
err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
NULL, (driver_intr_t *)xhci_interrupt, sc, &sc->sc_intr_hdl);
if (err != 0) {