Skip to content

Commit 5edc24a

Browse files
ambarusvinodkoul
authored andcommitted
dmaengine: at_xdmac: Print debug message after realeasing the lock
It is desirable to do the prints without the lock held if possible, so move the print after the lock is released. Fixes: e1f7c9e ("dmaengine: at_xdmac: creation of the atmel eXtended DMA Controller driver") Signed-off-by: Tudor Ambarus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent e6af9b0 commit 5edc24a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/dma/at_xdmac.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,12 @@ static dma_cookie_t at_xdmac_tx_submit(struct dma_async_tx_descriptor *tx)
473473
spin_lock_irqsave(&atchan->lock, irqflags);
474474
cookie = dma_cookie_assign(tx);
475475

476-
dev_vdbg(chan2dev(tx->chan), "%s: atchan 0x%p, add desc 0x%p to xfers_list\n",
477-
__func__, atchan, desc);
478476
list_add_tail(&desc->xfer_node, &atchan->xfers_list);
479477
spin_unlock_irqrestore(&atchan->lock, irqflags);
478+
479+
dev_vdbg(chan2dev(tx->chan), "%s: atchan 0x%p, add desc 0x%p to xfers_list\n",
480+
__func__, atchan, desc);
481+
480482
return cookie;
481483
}
482484

0 commit comments

Comments
 (0)