Make sure to ack the interrupt even if we are ignoring it. Otherwise, we will

keep coming back.
This commit is contained in:
joff 2004-12-22 19:36:13 +00:00
parent 781176b751
commit 330c69ca0e

View File

@ -1,4 +1,4 @@
/* $NetBSD: ohci.c,v 1.153 2004/12/21 16:41:24 fvdl Exp $ */
/* $NetBSD: ohci.c,v 1.154 2004/12/22 19:36:13 joff Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
/*
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.153 2004/12/21 16:41:24 fvdl Exp $");
__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.154 2004/12/22 19:36:13 joff Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1110,6 +1110,10 @@ ohci_intr(void *p)
#ifdef DIAGNOSTIC
DPRINTFN(16, ("ohci_intr: ignored interrupt while polling\n"));
#endif
/* for level triggered intrs, should do something to ack */
OWRITE4(sc, OHCI_INTERRUPT_STATUS,
OREAD4(sc, OHCI_INTERRUPT_STATUS));
return (0);
}