]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: tegra: Return correct DMA status when paused
authorAkhil R <akhilrajeev@nvidia.com>
Thu, 12 Dec 2024 12:44:12 +0000 (18:14 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 24 Dec 2024 10:19:30 +0000 (15:49 +0530)
commitebc008699fd95701c9af5ebaeb0793eef81a71d5
tree43aca9b65c1a48fb89f452c963c800068a6dfd1d
parent362f1bf98a3ecb5a2a4fcbdaa9718c8403beceb2
dmaengine: tegra: Return correct DMA status when paused

Currently, the driver does not return the correct DMA status when a DMA
pause is issued by the client drivers. This causes GPCDMA users to
assume that DMA is still running, while in reality, the DMA is paused.

Return DMA_PAUSED for tx_status() if the channel is paused in the middle
of a transfer.

Fixes: ee17028009d4 ("dmaengine: tegra: Add tegra gpcdma driver")
Cc: stable@vger.kernel.org
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Signed-off-by: Kartik Rajput <kkartik@nvidia.com>
Link: https://lore.kernel.org/r/20241212124412.5650-1-kkartik@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra186-gpc-dma.c