mmc: sdhci: execute tuning when device is not busy
authorYi Sun <yi.y.sun@intel.com>
Tue, 9 Sep 2014 02:13:59 +0000 (02:13 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 24 Sep 2014 09:03:17 +0000 (11:03 +0200)
commit7756a96d1617753d8387e59e0ba410e0dd512be4
tree55686d4c3b43cbbb8726b4da6698f395b81cdc0a
parent528bc7808f4e36a330ec17ef22803f1345091494
mmc: sdhci: execute tuning when device is not busy

We find tuning timeout because of the secure erase operation lasts too
long, so don't do tuning when device is busy.

Signed-off-by: Yi Sun <yi.y.sun@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h