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

Commit 6165eee4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: core: add runtime PM voting to devfreq context"

parents f667b065 e84ef388
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -529,6 +529,7 @@ static int mmc_devfreq_set_target(struct device *dev,
	clk_scaling->need_freq_change = false;

	mmc_host_clk_hold(host);
	mmc_get_card(host->card);
	err = mmc_clk_update_freq(host, *freq, clk_scaling->state);
	if (err && err != -EAGAIN)
		pr_err("%s: clock scale to %lu failed with error %d\n",
@@ -537,6 +538,7 @@ static int mmc_devfreq_set_target(struct device *dev,
		pr_debug("%s: clock change to %lu finished successfully (%s)\n",
			mmc_hostname(host), *freq, current->comm);

	mmc_put_card(host->card);

	mmc_host_clk_release(host);
	mmc_release_host(host);