1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 18:01:55 +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:
Andy Green 2008-11-28 10:16:40 +00:00 committed by Andy Green
parent 75e1f8d156
commit 4e326e29fa

View File

@ -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;
} }