mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-22 23:09:21 +02:00
qi-fix-always-slow-glamo-mmc-init.patch
Little bugfix that we never exit the mmc init wait loop before the timeout expires. Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
parent
75e1f8d156
commit
4e326e29fa
@ -673,16 +673,18 @@ int mmc_init(int verbose)
|
|||||||
if (resp)
|
if (resp)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (response[3] & (1 << 6)) /* asserts block addressing */
|
if (response[3] & (1 << 6)) { /* asserts block addressing */
|
||||||
|
retries = -2;
|
||||||
card_type = CARDTYPE_SDHC;
|
card_type = CARDTYPE_SDHC;
|
||||||
|
}
|
||||||
if (response[3] & (1 << 7)) { /* not busy */
|
if (response[3] & (1 << 7)) { /* not busy */
|
||||||
if (card_type == CARDTYPE_NONE)
|
if (card_type == CARDTYPE_NONE)
|
||||||
card_type = CARDTYPE_SD;
|
card_type = CARDTYPE_SD;
|
||||||
|
retries = -2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (retries < 0) {
|
if (retries == -1) {
|
||||||
puts("no response\n");
|
puts("no response\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user