mmc: mmc: Use ->card_busy() to detect busy cards in __mmc_switch()
authorChaotian Jing <chaotian.jing@mediatek.com>
Thu, 19 May 2016 08:47:40 +0000 (16:47 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:08 +0000 (10:34 +0200)
commit87a18a6a565271a886d48df49e5e27ba99e26c60
tree0a4291c2d102704431a90b3465b01473e788be83
parente613cc477c777a175c89d607d1f7a8ef528d2c43
mmc: mmc: Use ->card_busy() to detect busy cards in __mmc_switch()

Some MMC hosts do not support MMC_CAP_WAIT_WHILE_BUSY, but implements the
->card_busy() callback. In such cases, extend __mmc_switch() to use this
method to check card status after switch command.

Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc_ops.c