]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
v4l: xilinx: scd: Don't mark channel as disabled in .s_stream(0)
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 3 Apr 2019 20:01:59 +0000 (13:01 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 5 Apr 2019 11:05:34 +0000 (13:05 +0200)
commit9ca255ad4f8578c8d95f91a2a88a71f7a01bbae9
tree7ac25d4d6d05834e964e65885c23ad827f085e72
parent45d6c73a3be65c72ec3a5559ccfb191d66b385f2
v4l: xilinx: scd: Don't mark channel as disabled in .s_stream(0)

Commit 2e77607047c6 ("xilinx: v4l2: dma: Add multiple output support")
incorrectly calls .s_stream(0) on all channels when one of them gets
disabled, causing all the other channels to hang. Work around this by
not disabling the channel in .s_stream(0). The channel will be disabled
in xscd_dma_terminate_all() which should be safe as long as
dmaengine_terminate_all() is called after xvip_pipeline_set_stream().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
drivers/media/platform/xilinx/xilinx-scenechange-dma.c