Subject: sip*: reset in interrupt logic
To: None <tech-net@netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@iijlab.net>
List: tech-net
Date: 08/04/2002 19:41:21
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <25132.1028457678.1@itojun.org>

	i need the following patch to make the following interface work.
	does it make sense?

itojun


sip0 at pci0 dev 18 function 0: NatSemi DP83815 10/100 Ethernet, rev 00
sip0: interrupting at irq 10
sip0: Ethernet address 00:00:24:c0:55:dc
nsphyter0 at sip0 phy 0: DP83815 10/100 media interface, rev. 1
nsphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto


------- =_aaaaaaaaaa0
Content-Type: message/rfc822
Content-ID: <25132.1028457678.2@itojun.org>
Content-Description: forwarded message

to: thorpej@netbsd.org
In-reply-to: itojun's message of Sun, 04 Aug 2002 16:36:46 +0900.
      
Subject: Re: soekris sip* interface 
From: Jun-ichiro itojun Hagino <itojun@iijlab.net>
Date: Sun, 04 Aug 2002 17:46:50 +0900
Sender: itojun@itojun.org

>	does sip* interface work for you on Soekris 4501?  for me it goes
>	into infinite loop in sip_intr and sip_init.

itojun

Index: if_sip.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pci/if_sip.c,v
retrieving revision 1.61
diff -u -r1.61 if_sip.c
--- if_sip.c	2002/07/11 18:07:56	1.61
+++ if_sip.c	2002/08/04 08:46:32
@@ -2138,10 +2138,12 @@
 	 */
 	SIP_DECL(stop)(ifp, 0);
 
+#if 0
 	/*
 	 * Reset the chip to a known state.
 	 */
 	SIP_DECL(reset)(sc);
+#endif
 
 #if !defined(DP83820)
 	if (SIP_CHIP_MODEL(sc, PCI_VENDOR_NS, PCI_PRODUCT_NS_DP83815)) {

------- =_aaaaaaaaaa0--