OSDN Git Service

mmc: core: retry CMD1 in mmc_send_op_cond() even if the ocr = 0
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 9 Apr 2019 11:05:06 +0000 (20:05 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Apr 2019 10:37:11 +0000 (12:37 +0200)
commit4c94cb651f478e0b53f10b77033b91a5c7702740
tree30fd6c0cfb7f7a8fc60f0c53691b75f5005ae862
parent71c733c4e1aeb83e8221e89caeec893d51f88b7b
mmc: core: retry CMD1 in mmc_send_op_cond() even if the ocr = 0

According to eMMC specification v5.1 section 6.4.3, we should issue
CMD1 repeatedly in the idle state until the eMMC is ready even if
the mmc_attach_mmc() calls this function with ocr = 0. Otherwise
some eMMC devices seems to enter the inactive mode after
mmc_init_card() issued CMD0 when the eMMC device is busy.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc_ops.c