Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: dw_mmc: exynos: fix the suspend/resume issue for exynos5433

Before enabling the clock, dwmmc exynos driver is trying to access the
register. Then the kernel panic can be occurred.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Jaehoon Chung and committed by
Ulf Hansson
e22842dd e74ef219

+7 -1
+7 -1
drivers/mmc/host/dw_mmc-exynos.c
··· 165 165 static int dw_mci_exynos_runtime_resume(struct device *dev) 166 166 { 167 167 struct dw_mci *host = dev_get_drvdata(dev); 168 + int ret; 169 + 170 + ret = dw_mci_runtime_resume(dev); 171 + if (ret) 172 + return ret; 168 173 169 174 dw_mci_exynos_config_smu(host); 170 - return dw_mci_runtime_resume(dev); 175 + 176 + return ret; 171 177 } 172 178 173 179 /**