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)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 08:16:06 +0000 (16:16 +0800)
commit5161f2318995c4a79f9249c8c7f96b94f7c33e3b
tree41a9fcfcb5726f5d6d854eb22726bf2818a337b4
parent8feaef3479cbabc68cd869e7b292cdb945b1f958
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