Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic ack intr only when intr is for us.
details: https://anonhg.NetBSD.org/src/rev/0eec32310dd2
branches: trunk
changeset: 515713:0eec32310dd2
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Oct 03 06:58:47 2001 +0000
description:
ack intr only when intr is for us.
diffstat:
sys/dev/ic/elinkxl.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r e4cff2a09c92 -r 0eec32310dd2 sys/dev/ic/elinkxl.c
--- a/sys/dev/ic/elinkxl.c Wed Oct 03 05:17:58 2001 +0000
+++ b/sys/dev/ic/elinkxl.c Wed Oct 03 06:58:47 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elinkxl.c,v 1.57 2001/10/01 09:26:29 yamt Exp $ */
+/* $NetBSD: elinkxl.c,v 1.58 2001/10/03 06:58:47 yamt Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1131,8 +1131,6 @@
return (0);
for (;;) {
- bus_space_write_2(iot, ioh, ELINK_COMMAND, C_INTR_LATCH);
-
stat = bus_space_read_2(iot, ioh, ELINK_STATUS);
if ((stat & S_MASK) == 0) {
@@ -1151,7 +1149,7 @@
* Acknowledge interrupts.
*/
bus_space_write_2(iot, ioh, ELINK_COMMAND, ACK_INTR |
- (stat & S_MASK));
+ (stat & (S_MASK | S_INTR_LATCH)));
if (sc->intr_ack)
(*sc->intr_ack)(sc);
Home |
Main Index |
Thread Index |
Old Index