projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9668c6b
)
mmc: davinci_mmc: Handle error for clk_enable
author
Jiasheng Jiang
<jiasheng@iscas.ac.cn>
Tue, 8 Mar 2022 07:14:15 +0000
(15:14 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:22 +0000
(14:23 +0200)
[ Upstream commit
09e7af76db02c74f2a339b3cb2d95460fa2ddbe4
]
As the potential failure of the clk_enable(),
it should be better to check it and return error
if fails.
Fixes: bbce5802afc5 ("davinci: mmc: updates to suspend/resume implementation")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link:
https://lore.kernel.org/r/20220308071415.1093393-1-jiasheng@iscas.ac.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/davinci_mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/davinci_mmc.c
b/drivers/mmc/host/davinci_mmc.c
index 2a757c88f9d211974d94ba6befb640da5c21e543..80de660027d890ac2a1b53e7cfc2c568c9618839 100644
(file)
--- a/
drivers/mmc/host/davinci_mmc.c
+++ b/
drivers/mmc/host/davinci_mmc.c
@@
-1375,8
+1375,12
@@
static int davinci_mmcsd_suspend(struct device *dev)
static int davinci_mmcsd_resume(struct device *dev)
{
struct mmc_davinci_host *host = dev_get_drvdata(dev);
+ int ret;
+
+ ret = clk_enable(host->clk);
+ if (ret)
+ return ret;
- clk_enable(host->clk);
mmc_davinci_reset_ctrl(host, 0);
return 0;