aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2022-10-20 17:21:53 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2022-10-20 17:23:42 +0000
commit3346ae0d24c072ef0e26ace3aae21bfef93d80aa (patch)
tree15587a3666e49466a1a7462840a8ba2352c3e28f /sys/dev
parente32e6e42fab35739e9a51309f316e2272081e0db (diff)
downloadsrc-3346ae0d24c072ef0e26ace3aae21bfef93d80aa.tar.gz
src-3346ae0d24c072ef0e26ace3aae21bfef93d80aa.zip
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
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/controller/xhci_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/xhci_pci.c b/sys/dev/usb/controller/xhci_pci.c
index 95edb29422ed..890eec4f0169 100644
--- a/sys/dev/usb/controller/xhci_pci.c
+++ b/sys/dev/usb/controller/xhci_pci.c
@@ -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) {