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:
6fea873
)
dmaengine: ti: k3-udma: Use proper return code in alloc_chan_resources
author
Peter Ujfalusi
<peter.ujfalusi@ti.com>
Tue, 12 May 2020 13:45:19 +0000
(16:45 +0300)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 15 May 2020 05:52:41 +0000
(11:22 +0530)
In udma_alloc_chan_resources() if the channel is not willing to stop then
the function should return with error code.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link:
https://lore.kernel.org/r/20200512134519.5642-1-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/ti/k3-udma.c
b/drivers/dma/ti/k3-udma.c
index
653aea3
..
9769a46
100644
(file)
--- a/
drivers/dma/ti/k3-udma.c
+++ b/
drivers/dma/ti/k3-udma.c
@@
-1850,6
+1850,7
@@
static int udma_alloc_chan_resources(struct dma_chan *chan)
udma_stop(uc);
if (udma_is_chan_running(uc)) {
dev_err(ud->dev, "chan%d: won't stop!\n", uc->id);
udma_stop(uc);
if (udma_is_chan_running(uc)) {
dev_err(ud->dev, "chan%d: won't stop!\n", uc->id);
+ ret = -EBUSY;
goto err_res_free;
}
}
goto err_res_free;
}
}