Skip to content

Commit

Permalink
dmaengine: dw: add debug message to dwc_dostart_first_queued
Browse files Browse the repository at this point in the history
It would be useful to know when the first descriptor in the queue is started
along with its cookie.

Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
andy-shev authored and Vinod Koul committed Jul 15, 2014
1 parent e7637c6 commit cba1561
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/dma/dw/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*----------------------------------------------------------------------*/
Expand Down

0 comments on commit cba1561

Please sign in to comment.