summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-06-18 12:15:37 +0300
committerVinod Koul <vinod.koul@intel.com>2014-07-15 22:14:29 +0530
commitcba15617c37cc6082c286c2a272202565f62e7bc (patch)
treecfb2c1ae7d1088f4b04f3d284be7680b5a74b541
parente7637c6c0382485f4d2e20715d058dae6f2b6a7c (diff)
downloadop-kernel-dev-cba15617c37cc6082c286c2a272202565f62e7bc.zip
op-kernel-dev-cba15617c37cc6082c286c2a272202565f62e7bc.tar.gz
dmaengine: dw: add debug message to dwc_dostart_first_queued
It would be useful to know when the first descriptor in the queue is started along with its cookie. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/dw/core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c
index 5ddf5e4..52815b9 100644
--- a/drivers/dma/dw/core.c
+++ b/drivers/dma/dw/core.c
@@ -281,11 +281,15 @@ static void dwc_dostart(struct dw_dma_chan *dwc, struct dw_desc *first)
static void dwc_dostart_first_queued(struct dw_dma_chan *dwc)
{
+ struct dw_desc *desc;
+
if (list_empty(&dwc->queue))
return;
list_move(dwc->queue.next, &dwc->active_list);
- dwc_dostart(dwc, dwc_first_active(dwc));
+ desc = dwc_first_active(dwc);
+ dev_vdbg(chan2dev(&dwc->chan), "%s: started %u\n", __func__, desc->txd.cookie);
+ dwc_dostart(dwc, desc);
}
/*----------------------------------------------------------------------*/
OpenPOWER on IntegriCloud