summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXu Ziyuan <xzy.xu@rock-chips.com>2017-03-12 06:19:04 (GMT)
committerJaehoon Chung <jh80.chung@samsung.com>2017-03-21 12:04:17 (GMT)
commit166c2b8fd91f9aa9e51505083d03784135609bf3 (patch)
tree08d79ed54f4ed3c18761c42747557f2f1dc7c36f
parentfa7720b21ef48f2d0ebd22f609fea7ec2cfe6c16 (diff)
downloadu-boot-fsl-qoriq-166c2b8fd91f9aa9e51505083d03784135609bf3.tar.xz
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>
-rw-r--r--drivers/mmc/mmc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 3648950..72fc177 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1111,7 +1111,6 @@ static int mmc_startup(struct mmc *mmc)
struct mmc_cmd cmd;
ALLOC_CACHE_ALIGN_BUFFER(u8, ext_csd, MMC_MAX_BLOCK_LEN);
ALLOC_CACHE_ALIGN_BUFFER(u8, test_csd, MMC_MAX_BLOCK_LEN);
- int timeout = 1000;
bool has_parts = false;
bool part_completed;
struct blk_desc *bdesc;
@@ -1167,9 +1166,6 @@ static int mmc_startup(struct mmc *mmc)
err = mmc_send_cmd(mmc, &cmd, NULL);
- /* Waiting for the ready status */
- mmc_send_status(mmc, timeout);
-
if (err)
return err;