Module Name: src
Committed By: kiyohara
Date: Mon Apr 20 12:41:38 UTC 2015
Modified Files:
src/sys/dev/ic: lan9118.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/lan9118.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/lan9118.c
diff -u src/sys/dev/ic/lan9118.c:1.19 src/sys/dev/ic/lan9118.c:1.20
--- src/sys/dev/ic/lan9118.c:1.19 Mon Apr 13 16:33:24 2015
+++ src/sys/dev/ic/lan9118.c Mon Apr 20 12:41:38 2015
@@ -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 @@ lan9118_attach(struct lan9118_softc *sc)
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);