summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRitesh Harjani <riteshh@codeaurora.org>2015-12-14 09:58:09 +0530
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:28:06 -0700
commited7cdb2aea11461f3f353e634ca63e241e47b0fd (patch)
treebb96873c544fdb0fcde119509f531165c658bfa0
parent2ce873cba6043d2cc45e70e487f74851002c625a (diff)
mmc: core: Fix mmc_set_ios w.r.t. error handling sequence
In case of error, software may power cycle/reset both controller and card. Thus even if auto bkops is enabled, mmc_set_ios can be used to power-off/power-on. Fix this by removing this condition from mmc_set_ios. Change-Id: I88a610ecbcc4036ac8ba99bc54706243b40db391 Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
-rw-r--r--drivers/mmc/core/core.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 64d5d57eb087..e65e16bf92ea 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2136,13 +2136,6 @@ void mmc_set_ios(struct mmc_host *host)
{
struct mmc_ios *ios = &host->ios;
- if (unlikely(ios->power_mode == MMC_POWER_OFF &&
- host->card && mmc_card_doing_auto_bkops(host->card))) {
- pr_err("%s: %s: illegal to disable power to card when running auto bkops\n",
- mmc_hostname(host), __func__);
- return;
- }
-
pr_debug("%s: clock %uHz busmode %u powermode %u cs %u Vdd %u "
"width %u timing %u\n",
mmc_hostname(host), ios->clock, ios->bus_mode,