From 94536f73ec48910533ea84f9bbbc1922764cb755 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 27 May 2004 01:34:35 +0000 Subject: while polling, ack & ignore interrupts. this will have to do until someone writes a better diff. from peter --- sys/dev/usb/ehci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index 15c6da5a6cd..c9684125ce6 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -486,9 +486,10 @@ ehci_intr(void *v) /* If we get an interrupt while polling, then just ignore it. */ if (sc->sc_bus.use_polling) { -#ifdef DIAGNOSTIC - printf("ehci_intr: ignored interrupt while polling\n"); -#endif + u_int32_t intrs = EHCI_STS_INTRS(EOREAD4(sc, EHCI_USBSTS)); + + if (intrs) + EOWRITE4(sc, EHCI_USBSTS, intrs); /* Acknowledge */ return (0); } -- cgit v1.2.3