projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d8173f
)
dmaengine: mmp_tdma: Log an error if channel is in wrong state
author
Lubomir Rintel
<lkundrak@v3.sk>
Sun, 19 Apr 2020 16:49:10 +0000
(18:49 +0200)
committer
Vinod Koul
<vkoul@kernel.org>
Thu, 23 Apr 2020 07:15:10 +0000
(12:45 +0530)
Let's log an error if the channel can't be prepared because it is in an
unexpected state.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link:
https://lore.kernel.org/r/20200419164912.670973-6-lkundrak@v3.sk
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/mmp_tdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/mmp_tdma.c
b/drivers/dma/mmp_tdma.c
index fa00665efd9d87e530fa630d360d882a126f2b95..1597f6ebf3357908243a79c4366a006b11534279 100644
(file)
--- a/
drivers/dma/mmp_tdma.c
+++ b/
drivers/dma/mmp_tdma.c
@@
-427,8
+427,10
@@
static struct dma_async_tx_descriptor *mmp_tdma_prep_dma_cyclic(
int num_periods = buf_len / period_len;
int i = 0, buf = 0;
- if (tdmac->status != DMA_COMPLETE)
+ if (tdmac->status != DMA_COMPLETE) {
+ dev_err(tdmac->dev, "controller busy");
return NULL;
+ }
if (period_len > TDMA_MAX_XFER_BYTES) {
dev_err(tdmac->dev,