mmc: drop unnecessary send_status request
It's redundant to send cmd13 after cmd9 whose response is not R1b. The card devices will not be busy w/ cmd9. Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
parent
fa7720b21e
commit
166c2b8fd9
|
@ -1111,7 +1111,6 @@ static int mmc_startup(struct mmc *mmc)
|
||||||
struct mmc_cmd cmd;
|
struct mmc_cmd cmd;
|
||||||
ALLOC_CACHE_ALIGN_BUFFER(u8, ext_csd, MMC_MAX_BLOCK_LEN);
|
ALLOC_CACHE_ALIGN_BUFFER(u8, ext_csd, MMC_MAX_BLOCK_LEN);
|
||||||
ALLOC_CACHE_ALIGN_BUFFER(u8, test_csd, MMC_MAX_BLOCK_LEN);
|
ALLOC_CACHE_ALIGN_BUFFER(u8, test_csd, MMC_MAX_BLOCK_LEN);
|
||||||
int timeout = 1000;
|
|
||||||
bool has_parts = false;
|
bool has_parts = false;
|
||||||
bool part_completed;
|
bool part_completed;
|
||||||
struct blk_desc *bdesc;
|
struct blk_desc *bdesc;
|
||||||
|
@ -1167,9 +1166,6 @@ static int mmc_startup(struct mmc *mmc)
|
||||||
|
|
||||||
err = mmc_send_cmd(mmc, &cmd, NULL);
|
err = mmc_send_cmd(mmc, &cmd, NULL);
|
||||||
|
|
||||||
/* Waiting for the ready status */
|
|
||||||
mmc_send_status(mmc, timeout);
|
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue