diff options
author | Krzysztof Kozlowski | 2020-06-11 14:17:40 +0200 |
---|---|---|
committer | Vinod Koul | 2020-06-24 13:05:01 +0530 |
commit | bfc1d5bf261df81155935aac10b721f4d5a70849 (patch) | |
tree | 98ae386f73d4b7aebb367d4eb876ccb09771abae | |
parent | 0b8975bdc0cc5310d48d9bdd871cefebe1f94c99 (diff) |
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 <krzk@kernel.org>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Link: https://lore.kernel.org/r/1591877861-28156-1-git-send-email-krzk@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/dma/fsl-edma-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/fsl-edma-common.c index 5697c3622699..4550818cca4a 100644 --- a/drivers/dma/fsl-edma-common.c +++ b/drivers/dma/fsl-edma-common.c @@ -589,6 +589,8 @@ void fsl_edma_xfer_desc(struct fsl_edma_chan *fsl_chan) { struct virt_dma_desc *vdesc; + lockdep_assert_held(&fsl_chan->vchan.lock); + vdesc = vchan_next_desc(&fsl_chan->vchan); if (!vdesc) return; |