Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a7e0992 authored by Talel Shenhar's avatar Talel Shenhar
Browse files

mmc: core: clock-scaling: scale only for data requests



This change makes sure we will do deferred scaling only
from data path and not for other requests such as mmc_switch.

Change-Id: I52142d7a0262ca8927c7c1c509235ead676aac97
Signed-off-by: default avatarTalel Shenhar <tatias@codeaurora.org>
parent d4bc64ea
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -952,9 +952,10 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
	mmc_host_clk_hold(host);
	led_trigger_event(host->led, LED_FULL);

	if (mmc_is_data_request(mrq)) {
		mmc_deferred_scaling(host);
	if (mmc_is_data_request(mrq))
		mmc_clk_scaling_start_busy(host, true);
	}

	host->ops->request(host, mrq);
}