mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
dc12b12435
Whenever VPDMA processes a data descriptor of a list, it processes it and sets up the channel for the DMA transaction. List manager holds the descriptor in the list until the DMA is complete. If sync_on_channel descriptor, or another descriptor for the same channel is present in the FIFO, list manager keeps them until the current channel is free. When the capture stream is closed suddenly while there are pending descriptors in the FIFO (streamON failed, application killed), it would keep the VPDMA in a busy state. Any further list post would fail with EBUSY. To avoid this, drivers need to stop the current processing list and cleanup all the resources VPDMA has taken and also clear the internal FSM of list manager. The state machine is cleared by issuing channel specific abort descriptor. Therefore, the vpdma_list_cleanup accepts an array of channels for which abort_channel descriptors should be posted. It is driver's responsibility to post for all the channels or the channels which were used in the last context. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com> Signed-off-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> |
||
---|---|---|
.. | ||
am437x | ||
atmel | ||
blackfin | ||
coda | ||
davinci | ||
exynos4-is | ||
exynos-gsc | ||
marvell-ccic | ||
mtk-mdp | ||
mtk-vcodec | ||
mtk-vpu | ||
omap | ||
omap3isp | ||
rcar-vin | ||
s3c-camif | ||
s5p-g2d | ||
s5p-jpeg | ||
s5p-mfc | ||
soc_camera | ||
sti | ||
ti-vpe | ||
vivid | ||
vsp1 | ||
xilinx | ||
arv.c | ||
fsl-viu.c | ||
Kconfig | ||
m2m-deinterlace.c | ||
Makefile | ||
mx2_emmaprp.c | ||
pxa_camera.c | ||
rcar_fdp1.c | ||
rcar_jpu.c | ||
rcar-fcp.c | ||
sh_veu.c | ||
sh_vou.c | ||
via-camera.c | ||
via-camera.h | ||
vim2m.c |