as3525v1: relax a bit requirements in the SD driver
commit19404ca60823de83d35ef2b0ac3edece6b0f97d6
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Tue, 25 May 2010 21:55:09 +0000 (25 21:55 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Tue, 25 May 2010 21:55:09 +0000 (25 21:55 +0000)
treea03b8a7621f33a11d826f9002fef223330803da5
parent119fd065b7d0d1edab637fd05ac3cd34dfcdede1
as3525v1: relax a bit requirements in the SD driver

- retry failed commands up to 6 times
- wait at most 5 seconds for the card to go to TRAN state

- wait for the card to be in TRAN state (i.e. not programming) before
  disabling SD clocks (remove the workaround in sd_enable() )

should fix lockups reported on fuzev1 under heavy internal storage + µSD use
(playback + database/pictureflow updating)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26291 a1c6a512-1295-4272-9138-f99709370657
firmware/target/arm/as3525/sd-as3525.c