Date: Sat, 12 Nov 2022 12:41:50 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: d68c00757df2 - stable/13 - xhci(4): Don't allocate an IRQ vector if hw.usb.xhci.use_polling=1 is set. Message-ID: <202211121241.2ACCfoLX054929@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=d68c00757df2d76ee42c372c92857df25722c97c commit d68c00757df2d76ee42c372c92857df25722c97c Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-10-20 17:21:53 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-11-12 12:00:06 +0000 xhci(4): Don't allocate an IRQ vector if hw.usb.xhci.use_polling=1 is set. This is useful for debugging purposes. Sponsored by: NVIDIA Networking (cherry picked from commit 3346ae0d24c072ef0e26ace3aae21bfef93d80aa) --- sys/dev/usb/controller/xhci_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/controller/xhci_pci.c b/sys/dev/usb/controller/xhci_pci.c index 3297765059ab..31c361fd26e8 100644 --- a/sys/dev/usb/controller/xhci_pci.c +++ b/sys/dev/usb/controller/xhci_pci.c @@ -404,7 +404,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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211121241.2ACCfoLX054929>