diff options
author | jhb <jhb@FreeBSD.org> | 2004-10-28 20:24:50 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-10-28 20:24:50 +0000 |
commit | 9a3bf16356ca6b4f1ad6a022a8ee9277255dda21 (patch) | |
tree | 16b1a6f4b0158b469800cd2500610713bbf5e2d3 /sys | |
parent | 30d3609f0a4fab361c70965d1afb6f3b5411f5b8 (diff) | |
download | FreeBSD-src-9a3bf16356ca6b4f1ad6a022a8ee9277255dda21.zip FreeBSD-src-9a3bf16356ca6b4f1ad6a022a8ee9277255dda21.tar.gz |
Handle all types of interrupts when operating the uhci(4) controller in
polled mode.
PR: kern/73000
Submitted by: Daan Vreeken <Danovitsch at Vitsch dot net>
MFC after: 1 month
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uhci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index eb46e86..411f809 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1552,7 +1552,7 @@ uhci_waitintr(uhci_softc_t *sc, usbd_xfer_handle xfer) for (; timo >= 0; timo--) { usb_delay_ms(&sc->sc_bus, 1); DPRINTFN(20,("uhci_waitintr: 0x%04x\n", UREAD2(sc, UHCI_STS))); - if (UREAD2(sc, UHCI_STS) & UHCI_STS_USBINT) + if (UREAD2(sc, UHCI_STS) & UHCI_STS_ALLINTRS) uhci_intr1(sc); if (xfer->status != USBD_IN_PROGRESS) return; @@ -1576,7 +1576,7 @@ uhci_poll(struct usbd_bus *bus) { uhci_softc_t *sc = (uhci_softc_t *)bus; - if (UREAD2(sc, UHCI_STS) & UHCI_STS_USBINT) + if (UREAD2(sc, UHCI_STS) & UHCI_STS_ALLINTRS) uhci_intr1(sc); } |