Bug 28346

Summary: USB ethernet dongle detach requires "ifconfig aue0 down" first.
Product: Base System Reporter: brian <brian>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description brian 2001-06-22 21:20:01 UTC
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".
Comment 1 Nick Hibma freebsd_committer freebsd_triage 2001-06-26 17:48:22 UTC
State Changed
From-To: open->suspended

This is a known problem, but for the moment there is no solution to it. 


Comment 2 Nick Hibma freebsd_committer freebsd_triage 2001-06-26 17:48:22 UTC
Responsible Changed
From-To: freebsd-bugs->n_hibma

USB is my baby.:wq
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2004-08-27 23:28:36 UTC
State Changed
From-To: suspended->feedback

Is this still a problem with modern versions of FreeBSD? 


Comment 4 Mark Linimon freebsd_committer freebsd_triage 2004-08-27 23:28:36 UTC
Responsible Changed
From-To: n_hibma->freebsd-bugs

With permission of assignee, reset assignment.
Comment 5 iedowse freebsd_committer freebsd_triage 2004-11-03 09:41:24 UTC
State Changed
From-To: feedback->closed


Feedback timed out, and this is probably already fixed.