dmaengine: ptdma: handle the cases based on DMA is complete
authorSanjay R Mehta <sanju.mehta@amd.com>
Wed, 2 Feb 2022 15:14:40 +0000 (09:14 -0600)
committerVinod Koul <vkoul@kernel.org>
Tue, 15 Feb 2022 05:24:54 +0000 (10:54 +0530)
commitb6ccf01975976066901e0d5130669d743040d0e3
tree15ac748358a3e54bda4da1f1c215946058c8db87
parent6fa7e0e836e23e2c758ac3930b040c8abbbf8a6f
dmaengine: ptdma: handle the cases based on DMA is complete

There is a need to segregate the cases when DMA is complete or not.
In case if DMA is already complete there is no need to handle it
again and gracefully exit from the function.

Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Link: https://lore.kernel.org/r/1643814880-3882-3-git-send-email-Sanju.Mehta@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ptdma/ptdma-dmaengine.c