]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MLK-10423: Capture: System hang if capture test app been killed
authorSandor Yu <R01008@freescale.com>
Sun, 15 Mar 2015 07:23:15 +0000 (15:23 +0800)
committerSandor Yu <R01008@freescale.com>
Mon, 16 Mar 2015 02:08:39 +0000 (10:08 +0800)
commit899414fc9ed0768244c9d877269712a823e3cfe8
tree92d0c34df3d22294f5cdac24f1c3674f0300acb3
parentc33b14da895e8da8a951ccd5a167a7e4ebbb2367
MLK-10423: Capture: System hang if capture test app been killed

System will hang if csi unit test mx6s_v4l2_capture.out process
been killed.

In csi capture driver function mx6s_csi_enable/disable is called
by vidioc_streamon/streamoff function.
But when csi unit test process is killed, vidioc_streamon/streamoff
will not been called, and csi function still working even the csi
clock is gated.

Move mx6s_csi_enable/disable function from
mx6s_vidioc_streamon/streamoff function to
mx6s_start_streaming/ mx6s_stop_streaming function to resolve the
issue.

Signed-off-by: Sandor Yu <R01008@freescale.com>
(cherry picked from commit fe3700b2dc97952ef5a055a48e1d5ba89e11b7dd)
drivers/media/platform/mxc/subdev/mx6s_capture.c