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

Commit 71287b29 authored by Vijay Viswanath's avatar Vijay Viswanath
Browse files

mmc: sd: return error information of sd_init_card incase of failure



During _mmc_sd_resume, if sd card initialization fails, the error
information is getting overwritten by mmc_resume_clk_scaling and the
error is not passed to caller function.

Change-Id: Id173e2db65024f12a714ec623668e47c540a56c3
Signed-off-by: default avatarVijay Viswanath <vviswana@codeaurora.org>
parent 20ae7a51
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1285,6 +1285,11 @@ static int _mmc_sd_resume(struct mmc_host *host)
#else
	err = mmc_sd_init_card(host, host->card->ocr, host->card);
#endif
	if (err) {
		pr_err("%s: %s: mmc_sd_init_card_failed (%d)\n",
				mmc_hostname(host), __func__, err);
		goto out;
	}
	mmc_card_clr_suspended(host->card);

	err = mmc_resume_clk_scaling(host);