mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-22 22:32:48 +02:00
[PATCH] Some SD cards require more retries in mmc_init
This patch effectively doubles maximum time allowed for retries performed by mmc_init. Also, the delay was shortened to lower the average time needed to init a card. Without it, i was unable to boot from Transcend TS8GUSDHC4 (appending rootdelay=1 was necessary as well).
This commit is contained in:
parent
51ce8bac68
commit
177921a4e6
@ -609,7 +609,7 @@ static void print_sd_cid(const struct sd_cid *cid)
|
||||
|
||||
int mmc_init(int verbose)
|
||||
{
|
||||
int retries = 50, rc = -1;
|
||||
int retries = 3000, rc = -1;
|
||||
int resp;
|
||||
u8 response[16];
|
||||
// mmc_cid_t *mmc_cid = (mmc_cid_t *)response;
|
||||
@ -675,9 +675,7 @@ int mmc_init(int verbose)
|
||||
|
||||
while (retries--) {
|
||||
|
||||
udelay(100000);
|
||||
udelay(100000);
|
||||
udelay(100000);
|
||||
udelay(10000);
|
||||
|
||||
resp = mmc_cmd(MMC_APP_CMD, 0x00000000,
|
||||
MMC_CMD_AC | MMC_RSP_R1, 0, 0, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user