projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c740532
)
mmc: dw_mmc: Check return value of dma_ops->init() in resume
author
Shawn Lin
<shawn.lin@rock-chips.com>
Tue, 6 Jan 2026 02:16:52 +0000
(10:16 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 23 Feb 2026 11:06:54 +0000
(12:06 +0100)
dma_ops->init() may fail, should check the return value.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/dw_mmc.c
b/drivers/mmc/host/dw_mmc.c
index
5c7859a
..
e437a14
100644
(file)
--- a/
drivers/mmc/host/dw_mmc.c
+++ b/
drivers/mmc/host/dw_mmc.c
@@
-3524,8
+3524,11
@@
int dw_mci_runtime_resume(struct device *dev)
goto err;
}
- if (host->use_dma && host->dma_ops->init)
- host->dma_ops->init(host);
+ if (host->use_dma && host->dma_ops->init) {
+ ret = host->dma_ops->init(host);
+ if (ret)
+ return ret;
+ }
/*
* Restore the initial value at FIFOTH register