Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2001 13:16:23 -0700 (PDT)
From:      Brian Behlendorf <brian@hyperreal.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/28346: USB ethernet dongle detach requires "ifconfig aue0 down" first.
Message-ID:  <200106222016.f5MKGNv30715@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         28346
>Category:       i386
>Synopsis:       USB ethernet dongle detach requires "ifconfig aue0 down" first.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 22 13:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Brian Behlendorf
>Release:        RELENG_4, as of Jun 11
>Organization:
>Environment:
FreeBSD yez.hyperreal.org 4.3-STABLE FreeBSD 4.3-STABLE #2: Mon Jun 11 22:16:32 PDT 2001     brian@yez.hyperreal.org:/usr/obj/usr/src/sys/yez  i386

>Description:
When detaching a USB ethernet dongle, the system crashes (not always, 
but almost always the second time) if "ifconfig aue0 down" is not run
first.  

Here's the relevant data.  On bootup:

 /kernel: usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
 /kernel: usb0: USB revision 1.0
 /kernel: uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 /kernel: uhub0: 2 ports with 2 removable, self powered

Attaching the USB ethernet adapter:

 /kernel: aue0: USB USB 10/100 FastEthernet, rev 1.10/1.01, addr 2
 /kernel: aue0: Ethernet address: 00:00:b4:c5:42:2f
 /kernel: miibus0: <MII bus> on aue0
 /kernel: acphy0: <AC101 10/100 media interface> on miibus0
 /kernel: acphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

Detaching the USB ethernet adapter:

 /kernel: aue0: usb error on rx: IOERROR
 last message repeated 9 times
 /kernel: aue0: at uhub0 port 1 (addr 2) disconnected
 /kernel: acphy0: detached
 /kernel: miibus0: detached
 /kernel: aue0: usb error on rx: IOERROR
 /kernel: aue0: detached

However if I do an "ifconfig aue0 down" before detach, I get

Jun 19 22:46:47 yez /kernel: aue0: at uhub0 port 1 (addr 2) disconnected
Jun 19 22:46:47 yez /kernel: acphy0: detached
Jun 19 22:46:47 yez /kernel: miibus0: detached
Jun 19 22:46:47 yez /kernel: aue0: detached

Which is what one would want to see, I presume.


>How-To-Repeat:
Connect together the same hardware combination described above.  Pull out
USB dongle without doing "ifconfig aue0 down".
>Fix:

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106222016.f5MKGNv30715>