Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Make sure to ack the interrupt even if we are ig...
details: https://anonhg.NetBSD.org/src/rev/491dd2ec03c5
branches: trunk
changeset: 572167:491dd2ec03c5
user: joff <joff%NetBSD.org@localhost>
date: Wed Dec 22 19:36:13 2004 +0000
description:
Make sure to ack the interrupt even if we are ignoring it. Otherwise, we will
keep coming back.
diffstat:
sys/dev/usb/ohci.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 01413cf5b04d -r 491dd2ec03c5 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Wed Dec 22 19:23:18 2004 +0000
+++ b/sys/dev/usb/ohci.c Wed Dec 22 19:36:13 2004 +0000
@@ -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 @@
#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);
}
Home |
Main Index |
Thread Index |
Old Index