]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Jan 2025 09:30:50 +0000 (10:30 +0100)
commitc2610aba67ed9cd5eac7e50d897dd04504e6a12a
tree9d9cd20fa6fa6c6ee80aabe2a837f8820b8f34ae
parente1f1aa97183fbd076babf45aefabd5c6042f0729
dmaengine: tegra: Return correct DMA status when paused

commit ebc008699fd95701c9af5ebaeb0793eef81a71d5 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/tegra186-gpc-dma.c