• Dan Carpenter's avatar
    dmaengine: mediatek-cqdma: sleeping in atomic context · 069b3c42
    Dan Carpenter authored
    The mtk_cqdma_poll_engine_done() function takes a true/false parameter
    where true means it's called from atomic context.  There are a couple
    places where it was set to false but it's actually in atomic context
    so it should be true.
    
    All the callers for mtk_cqdma_hard_reset() are holding a spin_lock and
    in mtk_cqdma_free_chan_resources() we take a spin_lock before calling
    the mtk_cqdma_poll_engine_done() function.
    
    Fixes: b1f01e48 ("dmaengine: mediatek: Add MediaTek Command-Queue DMA controller for MT6765 SoC")
    Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
    069b3c42
mtk-cqdma.c 24.6 KB