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

Commit e63ddcbf authored by Konstantin Dorfman's avatar Konstantin Dorfman
Browse files

mmc: sdhci-msm: fix tracepoint for pm debugging



Tracepoint measures time that takes runtime suspend, suspending crypto
engine time included into measurement.

Change-Id: I6108a9dc5b188e2086aa5e6d2fe87414bb2a2539
Signed-off-by: default avatarKonstantin Dorfman <kdorfman@codeaurora.org>
parent 5e6aeaaf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3396,8 +3396,6 @@ static int sdhci_msm_runtime_suspend(struct device *dev)
		if (msm_host->msm_bus_vote.client_handle)
			sdhci_msm_bus_cancel_work_and_set_vote(host, 0);
	}
	trace_sdhci_msm_runtime_suspend(mmc_hostname(host->mmc), 0,
			ktime_to_us(ktime_sub(ktime_get(), start)));

	if (host->is_crypto_en) {
		ret = sdhci_msm_ice_suspend(host);
@@ -3405,6 +3403,8 @@ static int sdhci_msm_runtime_suspend(struct device *dev)
			pr_err("%s: failed to suspend crypto engine %d\n",
					mmc_hostname(host->mmc), ret);
	}
	trace_sdhci_msm_runtime_suspend(mmc_hostname(host->mmc), 0,
			ktime_to_us(ktime_sub(ktime_get(), start)));
	return 0;
}