dmaengine: dw: add debug message to dwc_dostart_first_queued
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 18 Jun 2014 09:15:37 +0000 (12:15 +0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 15 Jul 2014 16:44:29 +0000 (22:14 +0530)
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>
drivers/dma/dw/core.c

index 5ddf5e4c12229b0d05a838553a17cae5fb45a514..52815b905b7c9c8e79f5f625b4d54477d9d747d1 100644 (file)
@@ -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);
 }
 
 /*----------------------------------------------------------------------*/