This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12083 - Add delay to usb-s3c6400x init to fix usb hang on some ipod classics
Attached to Project:
Rockbox
Opened by Nils Wallménius (nls) - Thursday, 28 April 2011, 19:45 GMT+2
Last edited by Nils Wallménius (nls) - Saturday, 19 November 2011, 12:18 GMT+2
Opened by Nils Wallménius (nls) - Thursday, 28 April 2011, 19:45 GMT+2
Last edited by Nils Wallménius (nls) - Saturday, 19 November 2011, 12:18 GMT+2
|
DetailsThis fixes usb mode in rb hanging on my classic 120GB. Starting with usb connected still hangs though... does that work on other classics?
|
This task depends upon
Closed by Nils Wallménius (nls)
Saturday, 19 November 2011, 12:18 GMT+2
Reason for closing: Accepted
Additional comments about closing: This has been comitted
Saturday, 19 November 2011, 12:18 GMT+2
Reason for closing: Accepted
Additional comments about closing: This has been comitted
Slightly better patch that uses udelays instead of delay loops and makes the delays as long as the bootrom uses, also changes the order of a few things to be more similar to the bootrom. The hang when booting with usb connected is still present, it hangs when waiting for GRSTCTL & 1, i think that's unrelated.
Changed usb_drv_exit to do the powerdown like the bootrom does and it seems to have fixed the hang on startup, the order of some writes is slightly different, set more bits in ORSTCON and add in delays for good measure.
2 people reported that this patch caused usb connections to be successfully established less often on their nano2g's so i guess it needs more investigation.