FS#11312 - as3525v2: relax sd_wait_for_state timeout and retry commands on error
Attached to Project:
Rockbox
Opened by Rafaël Carré (funman) - Monday, 24 May 2010, 14:56 GMT
Last edited by Rafaël Carré (funman) - Thursday, 27 May 2010, 20:29 GMT
Opened by Rafaël Carré (funman) - Monday, 24 May 2010, 14:56 GMT
Last edited by Rafaël Carré (funman) - Thursday, 27 May 2010, 20:29 GMT
|
Details- Higher timeout set to 5 seconds when waiting for the card to be back at transmission state.
I didn't find a precise timeout in linux source code but this one should be enough. - yield() while DATA_BUSY bit is set (the linux driver just busy loops) - retry sending commands up to 6 times before failing The linux code has a #define SD_CMD_RETRIES (6) /*!< command retries */ in sd_config.h header Didn't run test_disk yet |
This task depends upon
FS#11267for v1