aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-04-14 07:42:05 -0400
committerVinod Koul <vinod.koul@intel.com>2014-04-22 12:06:10 -0400
commite6fad592b0e8a6205f23a3e55b2e682e4f36d32f (patch)
tree797f5e010e3a53fad70ce3e9a7a698e31d0cbf3d
parentc594c8912bd6d0dfa45cc08b58a60dcbb8010ecb (diff)
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: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Joel Fernandes <joelf@ti.com> Reviewed-and-Tested-by: Joel Fernandes <joelf@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/edma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index 571f3b1ef2c2..ea04b2192822 100644
--- a/drivers/dma/edma.c
+++ b/drivers/dma/edma.c
@@ -433,7 +433,7 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
433 dev_width = echan->cfg.dst_addr_width; 433 dev_width = echan->cfg.dst_addr_width;
434 burst = echan->cfg.dst_maxburst; 434 burst = echan->cfg.dst_maxburst;
435 } else { 435 } else {
436 dev_err(dev, "%s: bad direction?\n", __func__); 436 dev_err(dev, "%s: bad direction: %d\n", __func__, direction);
437 return NULL; 437 return NULL;
438 } 438 }
439 439
@@ -526,7 +526,7 @@ static struct dma_async_tx_descriptor *edma_prep_dma_cyclic(
526 dev_width = echan->cfg.dst_addr_width; 526 dev_width = echan->cfg.dst_addr_width;
527 burst = echan->cfg.dst_maxburst; 527 burst = echan->cfg.dst_maxburst;
528 } else { 528 } else {
529 dev_err(dev, "%s: bad direction?\n", __func__); 529 dev_err(dev, "%s: bad direction: %d\n", __func__, direction);
530 return NULL; 530 return NULL;
531 } 531 }
532 532