This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8943 - USB Storage connection makes ata.c disable disk spindown
Attached to Project:
Rockbox
Opened by Frank Gevaerts (fg) - Sunday, 27 April 2008, 21:29 GMT+2
Last edited by Frank Gevaerts (fg) - Thursday, 02 October 2008, 23:02 GMT+2
Opened by Frank Gevaerts (fg) - Sunday, 27 April 2008, 21:29 GMT+2
Last edited by Frank Gevaerts (fg) - Thursday, 02 October 2008, 23:02 GMT+2
|
Detailsata.c calls usb_wait_for_disconnect() after receiving a SYS_USB_CONNECTED event. This may be correct for hardware ATA/USB bridges, but it is wrong for the rockbox usb stack, because it also disables other events, some of which seem to be used to manage sleep timeouts.
I don't know enough about ata.c to actually touch this, but probaby just make disable usb_wait_for_disconnect() if USE_ROCKBOX_USB and HAVE_USBSTACK are defined is enough (both, because USE_ROCKBOX_USB will probably disappear at some point). |
This task depends upon
Whilst this does seem to work okay in conjunction with charging - it does intefer with the USB MSC code. Doing anything to the disk while it's hooked up over USB completely hosed the filesystem. Twice! (I'm a glutton for punishment!)