summaryrefslogtreecommitdiff
path: root/drivers/dma/xgene-dma.c
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@foss.st.com>2023-10-04 19:35:30 +0300
committerVinod Koul <vkoul@kernel.org>2023-10-09 08:40:30 +0300
commit584970421725b7805db84714b857851fdf7203a9 (patch)
tree5ccfcd4336a1dc98cc93ad75e8c9a1e8419375b0 /drivers/dma/xgene-dma.c
parenta4b306eb83579c07b63dc65cd5bae53b7b4019d0 (diff)
downloadlinux-584970421725b7805db84714b857851fdf7203a9.tar.xz
dmaengine: stm32-mdma: set in_flight_bytes in case CRQA flag is set
CRQA flag is set by hardware when the channel request become active and the channel is enabled. It is cleared by hardware, when the channel request is completed. So when it is set, it means MDMA is transferring bytes. This information is useful in case of STM32 DMA and MDMA chaining, especially when the user pauses DMA before stopping it, to trig one last MDMA transfer to get the latest bytes of the SRAM buffer to the destination buffer. STM32 DCMI driver can then use this to know if the last MDMA transfer in case of chaining is done. Fixes: 696874322771 ("dmaengine: stm32-mdma: add support to be triggered by STM32 DMA") Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20231004163531.2864160-3-amelie.delaunay@foss.st.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/xgene-dma.c')
0 files changed, 0 insertions, 0 deletions