diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2004-11-11 12:15:49 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2004-11-11 12:15:49 +0000 |
commit | fc474128a8bc2cbb0fb28f3b793897e6d9a54f10 (patch) | |
tree | e9be240296009d662cc9412a09727c2343c3d942 /sys | |
parent | 23d05ccb96d2d52db2f5a2e8228c7faf1558d828 (diff) |
Handle all types of interrupts when operating in polled mode.
from Danovitsch@vitsch.net
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uhci.c | 6 |
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); } |