rk27xx: Increase timeout for sd card initialization. 1 sec isn't enough in some cases.

Change-Id: I8d5384b53754e71b9a057a8602854d09b1885c68
This commit is contained in:
Andrew Ryabinin 2013-02-01 11:19:22 +04:00
parent a085c10674
commit 63859e6894

View file

@ -256,8 +256,10 @@ static int sd_init_card(void)
if((response & 0xFFF) == 0x1AA) if((response & 0xFFF) == 0x1AA)
sd_v2 = true; sd_v2 = true;
/* timeout for initialization is 1sec, from SD Specification 2.00 */ /* Timeout for inintialization is 2 sec.
init_timeout = current_tick + HZ; According to SD Specification 2.00 it should be >= 1,
but it's not enough in some rare cases. */
init_timeout = current_tick + 2*HZ;
do { do {
/* this timeout is the only valid error for this loop*/ /* this timeout is the only valid error for this loop*/