Bug 118098 - [umass] 6th gen iPod causes problems when disconnecting, even after umount
Summary: [umass] 6th gen iPod causes problems when disconnecting, even after umount
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 7.0-BETA3
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-17 07:20 UTC by Jeff Palmer
Modified: 2017-12-31 22:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Palmer 2007-11-17 07:20:01 UTC
I just got a 6th generation ipod.  My 5th generation ipod works fine.

the 6th gen ipod can be used just like the 5th gen, in that I can mount
it as a USB disk.  I can write files to it,  I can use any of the ipod
music software,  etc.  However,  when I camcontrol eject it,  it reports
success.   The problem comes when I actually physically disconnect the unit.

Nov 17 01:53:43 Laptop kernel: umass0: BBB reset failed, IOERROR
Nov 17 01:53:43 Laptop kernel: umass0: BBB bulk-in clear stall failed, IOERROR
Nov 17 01:53:43 Laptop kernel: umass0: BBB bulk-out clear stall failed, IOERROR
Nov 17 01:53:43 Laptop kernel: umass0: BBB reset failed, IOERROR


The above persists indefinitely until I either:

#1) reboot
#2) plug, or unplug *another* USB device (thumbdrive, usb harddrive, usb
    bluetooth dongle, or even cellphone.)

After which, the spam stops, and the following is logged:
Nov 17 02:05:52 Laptop kernel: umass0: BBB bulk-out clear stall failed, IOERROR
Nov 17 02:05:54 Laptop kernel: umass0: at uhub4 port 3 (addr 2) disconnected
Nov 17 02:05:54 Laptop kernel: (da0:umass-sim0:0:0:0): lost device
Nov 17 02:05:54 Laptop kernel: (da0:umass-sim0:0:0:0): removing device entry
Nov 17 02:05:54 Laptop kernel: GEOM_LABEL: Label msdosfs/IPOD removed.
Nov 17 02:05:54 Laptop kernel: umass0: detached
Nov 17 02:05:55 Laptop kernel: ugen0: <vendor 0x1131 product 0x1001, class 224/1, rev 1.10/3.73, addr 4> on uhub0

How-To-Repeat: Attach a 6th gen ipod.  mount it using mount_msdodfs.  unmount it.
disconnect the cable.  Watch your logs grow to insane sizes. Plug in
another USB device (or unplug one) and watch it stop.

I'm not sure if this is a usb problem, or a geom problem.   but the above *does not occur* when using a 5th generation ipod.
Comment 1 agrow+freebsd+pr118098 2007-12-23 20:38:42 UTC
I can also reproduce this with 7.0-BETA3 and my 6th gen nano. Anything
plugged in to the same usb port fails to mount with IOERRORs; reconnecting
a device on a different port renders the port usable again.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:47 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped