浏览代码

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>
Pierre Tardy 14 年之前
父节点
当前提交
66c036e014
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/mmc/core/core.c

+ 1 - 2
drivers/mmc/core/core.c

@@ -167,8 +167,6 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
 
 
 	WARN_ON(!host->claimed);
 	WARN_ON(!host->claimed);
 
 
-	led_trigger_event(host->led, LED_FULL);
-
 	mrq->cmd->error = 0;
 	mrq->cmd->error = 0;
 	mrq->cmd->mrq = mrq;
 	mrq->cmd->mrq = mrq;
 	if (mrq->data) {
 	if (mrq->data) {
@@ -194,6 +192,7 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
 		}
 		}
 	}
 	}
 	mmc_host_clk_ungate(host);
 	mmc_host_clk_ungate(host);
+	led_trigger_event(host->led, LED_FULL);
 	host->ops->request(host, mrq);
 	host->ops->request(host, mrq);
 }
 }