mmc: core: Do not poll for busy with status cmd for all switch cmds
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 9 Sep 2013 09:57:57 +0000 (11:57 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 31 Oct 2013 00:26:24 +0000 (20:26 -0400)
commit878e200bbb1fbde9f21582decab95b178e5a3b83
tree058fb92c1339c23c35d4771f07b8ad5f7ad22e3d
parentd052068a0ba43273eb9cfe32460e9445ef75fdc5
mmc: core: Do not poll for busy with status cmd for all switch cmds

Some switch operations like poweroff notify, shall according to the
spec not be followed by any other new commands. For these cases and
when the host does'nt support MMC_CAP_WAIT_WHILE_BUSY, we must not
send status commands to poll for busy detection. Instead wait for
the stated timeout from the EXT_CSD before completing the request.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
drivers/mmc/core/mmc.c
drivers/mmc/core/mmc_ops.c
include/linux/mmc/core.h