Subject: kern/27526: if_axe not getting no link with DLink DUB E100
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <root@hydra.kaervek.net>
List: netbsd-bugs
Date: 10/26/2004 23:29:24
>Number:         27526
>Category:       kern
>Synopsis:       if_axe not getting no link with DLink DUB E100
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 26 21:30:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     netbsd
>Release:        NetBSD 2.99.10
>Organization:
none
>Environment:
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x2482 (rev. 0x01)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x2484 (rev. 0x01)
uhci1: interrupting at irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x2487 (rev. 0x01)
uhci2: interrupting at irq 9
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ugen0 at uhub2 port 1axe0 at uhub0 port 1 configuration 1 interface 0
ugen0: Sony USB Memory Stick Slot, rev 1.10/1.80, addr 2
axe0: vendor 0x2001 product 0x1a00, rev 2.00/10.01, addr 2
axe0: Ethernet address 00:80:c8:37:3a:e7

System: NetBSD hydra.kaervek.net 2.99.10 NetBSD 2.99.10 (hydra-2x) #13: Tue Oct 26 23:15:56 CEST 2004 root@hydra.kaervek.net:/usr/src/sys/arch/i386/compile/hydra-2x i386
Architecture: i386
Machine: i386
>Description:
	The if_axe.c driver never gets a 'link up' and thus never will be able to transmit/receive any data for me. It seem like it a;way thinks there is no cable attached.
>How-To-Repeat:
	Connect the ethernet driver to the usb port. Connect the cable from an ADSL modem directly to the thernet port of the modem. This is the setup where I intent to use the modem
	But connecting the modem directly to a switch will fail aswell for me. Even connecting it with a crossed ethernet cable fails. It never sees the cable attached :(
>Fix:
I doubt this is the real deal. But at least it works for me ;)

--- if_axe.c    2004-10-26 22:57:38.000000000 +0200
+++ /root/if_axe.c      2004-10-26 22:56:08.000000000 +0200
@@ -986,6 +986,7 @@
        mii_tick(mii);
        if (!sc->axe_link) {
                mii_pollstat(mii);
+               sc->axe_link++;
                if (mii->mii_media_status & IFM_ACTIVE &&
                    IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
                        DPRINTF(("%s: %s: got link\n",

>Release-Note:
>Audit-Trail:
>Unformatted: