Message ID | 1600769503-30395-1-git-send-email-haibo.chen@nxp.com |
---|---|
State | Accepted |
Commit | ef5ab0d13a7a44469f6c765c8acc8d54c23213de |
Delegated to: | Peng Fan |
Headers | show |
Series | [1/2] mmc: do not send cmd13 if the parameter 'send_status' is 0 for __mmc_switch | expand |
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index d79cdef62e..6cb2af4232 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -805,8 +805,10 @@ static int __mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value, * capable of polling by using mmc_wait_dat0, then rely on waiting the * stated timeout to be sufficient. */ - if (ret == -ENOSYS && !send_status) + if (ret == -ENOSYS && !send_status) { mdelay(timeout_ms); + return 0; + } /* Finally wait until the card is ready or indicates a failure * to switch. It doesn't hurt to use CMD13 here even if send_status