Skip to content

Commit bfc1d5b

Browse files
krzkvinodkoul
authored andcommitted
dmaengine: fsl-edma: Add lockdep assert for exported function
Add lockdep assert for an exported function expected to be called under spin lock. Since this function is called in different modules, the lockdep assert will be self-documenting note about need for locking. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Robin Gong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 0b8975b commit bfc1d5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/dma/fsl-edma-common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,8 @@ void fsl_edma_xfer_desc(struct fsl_edma_chan *fsl_chan)
589589
{
590590
struct virt_dma_desc *vdesc;
591591

592+
lockdep_assert_held(&fsl_chan->vchan.lock);
593+
592594
vdesc = vchan_next_desc(&fsl_chan->vchan);
593595
if (!vdesc)
594596
return;

0 commit comments

Comments
 (0)