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

Commit 50c959aa authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: core: Resume clk scaling after hw reset



Fix clock scaling in hw reset path to resume clock scaling
after hw reset.

Also hw reset during mmc card initialization is not required.
This may unnecessarily add latency in mmc card initialization
upon addition of hw reset recovery support.

Change-Id: I0c3580b6b113d4d1afad5a9e24fe9fec4deea5bc
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent c89523bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2940,9 +2940,9 @@ static int _mmc_hw_reset(struct mmc_host *host)
		return ret;
	}

	ret = mmc_suspend_clk_scaling(host);
	ret = mmc_resume_clk_scaling(host);
	if (ret) {
		pr_err("%s: %s: fail to suspend clock scaling (%d)\n",
		pr_err("%s: %s: fail to resume clock scaling (%d)\n",
				mmc_hostname(host), __func__, ret);
	}
	return ret;