Commit e6fad592 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Vinod Koul

dmaengine: edma: Print the direction value as well when it is not supported

In case of not supported direction it is better to print the direction also.
It is unlikely, but in such an event it helps with the debugging.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: default avatarJoel Fernandes <joelf@ti.com>
Reviewed-and-Tested-by: default avatarJoel Fernandes <joelf@ti.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent c594c891
...@@ -433,7 +433,7 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg( ...@@ -433,7 +433,7 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
dev_width = echan->cfg.dst_addr_width; dev_width = echan->cfg.dst_addr_width;
burst = echan->cfg.dst_maxburst; burst = echan->cfg.dst_maxburst;
} else { } else {
dev_err(dev, "%s: bad direction?\n", __func__); dev_err(dev, "%s: bad direction: %d\n", __func__, direction);
return NULL; return NULL;
} }
...@@ -526,7 +526,7 @@ static struct dma_async_tx_descriptor *edma_prep_dma_cyclic( ...@@ -526,7 +526,7 @@ static struct dma_async_tx_descriptor *edma_prep_dma_cyclic(
dev_width = echan->cfg.dst_addr_width; dev_width = echan->cfg.dst_addr_width;
burst = echan->cfg.dst_maxburst; burst = echan->cfg.dst_maxburst;
} else { } else {
dev_err(dev, "%s: bad direction?\n", __func__); dev_err(dev, "%s: bad direction: %d\n", __func__, direction);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment