Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Backout r1.18.
details: https://anonhg.NetBSD.org/src/rev/1ed4acc19a2f
branches: trunk
changeset: 807712:1ed4acc19a2f
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Mon Apr 20 12:41:38 2015 +0000
description:
Backout r1.18.
Don't change IRQ porality. The Real-machines encounters interrupt storm.
OK slp@.
I assum configured it from boot-loader already. However need polarity
information, if not. Shall we implement to use prop_dictionary_{set,get}?
Also this case, re-initialized to LAN9118_IRQ_CFG without
LAN9118_IRQ_CFG_POL in lan9118_init(). I think, again interrupt storm on
QEMU.
diffstat:
sys/dev/ic/lan9118.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 1bab35933ca3 -r 1ed4acc19a2f sys/dev/ic/lan9118.c
--- a/sys/dev/ic/lan9118.c Mon Apr 20 10:19:54 2015 +0000
+++ b/sys/dev/ic/lan9118.c Mon Apr 20 12:41:38 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lan9118.c,v 1.19 2015/04/13 16:33:24 riastradh Exp $ */
+/* $NetBSD: lan9118.c,v 1.20 2015/04/20 12:41:38 kiyohara Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lan9118.c,v 1.19 2015/04/13 16:33:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lan9118.c,v 1.20 2015/04/20 12:41:38 kiyohara Exp $");
/*
* The LAN9118 Family
@@ -169,10 +169,6 @@
return EINVAL;
}
- /* Configure interrupt polarity */
- bus_space_write_4(sc->sc_iot, sc->sc_ioh, LAN9118_IRQ_CFG,
- LAN9118_IRQ_CFG_IRQ_TYPE | LAN9118_IRQ_CFG_IRQ_POL);
-
val = bus_space_read_4(sc->sc_iot, sc->sc_ioh, LAN9118_ID_REV);
sc->sc_id = LAN9118_ID_REV_ID(val);
sc->sc_rev = LAN9118_ID_REV_REV(val);
Home |
Main Index |
Thread Index |
Old Index