aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/edma.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-04-14 07:42:02 -0400
committerVinod Koul <vinod.koul@intel.com>2014-04-22 12:05:46 -0400
commit83bb3126cc63620fe23c2a0539800ab7f8cf7ba4 (patch)
tree98e5a93edfc6e49a14f1ba14cd05fa76e0bdc50e /drivers/dma/edma.c
parent232b223d8281d33820053bb711f91864b8612d8e (diff)
dmaengine: edma: Reduce debug print verbosity for non verbose debugging
Do not print the paRAM information when verbose debugging is not asked and also reduce the number of lines printed in edma_prep_dma_cyclic() 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>
Diffstat (limited to 'drivers/dma/edma.c')
-rw-r--r--drivers/dma/edma.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index eef51644b69f..5c24b6024278 100644
--- a/drivers/dma/edma.c
+++ b/drivers/dma/edma.c
@@ -141,7 +141,7 @@ static void edma_execute(struct edma_chan *echan)
141 for (i = 0; i < nslots; i++) { 141 for (i = 0; i < nslots; i++) {
142 j = i + edesc->processed; 142 j = i + edesc->processed;
143 edma_write_slot(echan->slot[i], &edesc->pset[j]); 143 edma_write_slot(echan->slot[i], &edesc->pset[j]);
144 dev_dbg(echan->vchan.chan.device->dev, 144 dev_vdbg(echan->vchan.chan.device->dev,
145 "\n pset[%d]:\n" 145 "\n pset[%d]:\n"
146 " chnum\t%d\n" 146 " chnum\t%d\n"
147 " slot\t%d\n" 147 " slot\t%d\n"
@@ -562,9 +562,8 @@ static struct dma_async_tx_descriptor *edma_prep_dma_cyclic(
562 edesc->cyclic = 1; 562 edesc->cyclic = 1;
563 edesc->pset_nr = nslots; 563 edesc->pset_nr = nslots;
564 564
565 dev_dbg(dev, "%s: nslots=%d\n", __func__, nslots); 565 dev_dbg(dev, "%s: channel=%d nslots=%d period_len=%zu buf_len=%zu\n",
566 dev_dbg(dev, "%s: period_len=%d\n", __func__, period_len); 566 __func__, echan->ch_num, nslots, period_len, buf_len);
567 dev_dbg(dev, "%s: buf_len=%d\n", __func__, buf_len);
568 567
569 for (i = 0; i < nslots; i++) { 568 for (i = 0; i < nslots; i++) {
570 /* Allocate a PaRAM slot, if needed */ 569 /* Allocate a PaRAM slot, if needed */
@@ -598,8 +597,8 @@ static struct dma_async_tx_descriptor *edma_prep_dma_cyclic(
598 else 597 else
599 src_addr += period_len; 598 src_addr += period_len;
600 599
601 dev_dbg(dev, "%s: Configure period %d of buf:\n", __func__, i); 600 dev_vdbg(dev, "%s: Configure period %d of buf:\n", __func__, i);
602 dev_dbg(dev, 601 dev_vdbg(dev,
603 "\n pset[%d]:\n" 602 "\n pset[%d]:\n"
604 " chnum\t%d\n" 603 " chnum\t%d\n"
605 " slot\t%d\n" 604 " slot\t%d\n"