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

Commit 371d39fa authored by Michael Trimarchi's avatar Michael Trimarchi Committed by Ulf Hansson
Browse files

mmc: sdhci-esdhc-imx: Manage sdhci_runtime_suspend_host error code



We need to return in case of error even if the actual implementation
of sdhci_runtime_suspend_host always return 0. We don't want to
power down the clock and the assuption is that the sdhci_runtime_suspend_host
always let the system consistent in case of failure

Signed-off-by: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent d72d72cd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1389,6 +1389,8 @@ static int sdhci_esdhc_runtime_suspend(struct device *dev)
	int ret;

	ret = sdhci_runtime_suspend_host(host);
	if (ret)
		return ret;

	if (host->tuning_mode != SDHCI_TUNING_MODE_3)
		mmc_retune_needed(host->mmc);