From: Pierre Tardy Date: Sun, 6 Feb 2011 18:02:48 +0000 (+0100) Subject: mmc: put the led blinking code after clock ungating X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66c036e0142fed2484d58a2d3c7a4d21ba32b6a6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Linus Walleij Signed-off-by: Chris Ball --- 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); }