summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Tardy <pierre.tardy@intel.com>2011-02-06 21:02:48 +0300
committerChris Ball <cjb@laptop.org>2011-03-15 20:48:30 +0300
commit66c036e0142fed2484d58a2d3c7a4d21ba32b6a6 (patch)
treecd6499240d111c2b074ef37f1517ccec2d14782f
parent54d6b44a5f0da708e8a9e496df304e05e8748ef9 (diff)
downloadlinux-66c036e0142fed2484d58a2d3c7a4d21ba32b6a6.tar.xz
mmc: put the led blinking code after clock ungating
Since mmc clock gating can also be used as a power gating tip, it's better to put the led blinking after having ungated the clock. Signed-off-by: Pierre Tardy <pierre.tardy@intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/core/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 150b5f3cd401..2af2ee1a2265 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -167,8 +167,6 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
WARN_ON(!host->claimed);
- led_trigger_event(host->led, LED_FULL);
-
mrq->cmd->error = 0;
mrq->cmd->mrq = mrq;
if (mrq->data) {
@@ -194,6 +192,7 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
}
}
mmc_host_clk_ungate(host);
+ led_trigger_event(host->led, LED_FULL);
host->ops->request(host, mrq);
}