summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2004-11-11 12:15:48 +0000
committerdlg <dlg@openbsd.org>2004-11-11 12:15:48 +0000
commit9da592ccf3ef88fa930d67ad960a4e7adb505305 (patch)
tree5a755800edf57c47dab60132db7a3a0a63188b83 /sys/dev/usb/uhci.c
parentrestrict update operation less: we're not bothered by @exec or INSTALL, (diff)
downloadwireguard-openbsd-9da592ccf3ef88fa930d67ad960a4e7adb505305.tar.xz
wireguard-openbsd-9da592ccf3ef88fa930d67ad960a4e7adb505305.zip
Handle all types of interrupts when operating in polled mode.
from Danovitsch@vitsch.net
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 0ea9ff16c98..14872d9aaa8 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.36 2004/08/11 04:25:53 dlg Exp $ */
+/* $OpenBSD: uhci.c,v 1.37 2004/11/11 12:15:48 dlg Exp $ */
/* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -1531,7 +1531,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;
@@ -1556,7 +1556,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);
}