mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-22 17:31:54 +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)
|
||||
continue;
|
||||
|
||||
if (response[3] & (1 << 6)) /* asserts block addressing */
|
||||
if (response[3] & (1 << 6)) { /* asserts block addressing */
|
||||
retries = -2;
|
||||
card_type = CARDTYPE_SDHC;
|
||||
|
||||
}
|
||||
if (response[3] & (1 << 7)) { /* not busy */
|
||||
if (card_type == CARDTYPE_NONE)
|
||||
card_type = CARDTYPE_SD;
|
||||
retries = -2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (retries < 0) {
|
||||
if (retries == -1) {
|
||||
puts("no response\n");
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user