]> asedeno.scripts.mit.edu Git - linux.git/commit
media: imx: csi: Stop upstream before disabling IDMA channel
authorSteve Longerbeam <slongerbeam@gmail.com>
Mon, 21 Jan 2019 23:35:51 +0000 (21:35 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 31 Jan 2019 11:14:19 +0000 (09:14 -0200)
commit4bc1ab41eee9d02ad2483bf8f51a7b72e3504eba
tree532533673e78d77eb755275e31ac36adf09bc6d6
parent2e0fe66e0a136252f4d89dbbccdcb26deb867eb8
media: imx: csi: Stop upstream before disabling IDMA channel

Move upstream stream off to just after receiving the last EOF completion
and disabling the CSI (and thus before disabling the IDMA channel) in
csi_stop(). For symmetry also move upstream stream on to beginning of
csi_start().

Doing this makes csi_s_stream() more symmetric with prp_s_stream() which
will require the same change to fix a hard lockup.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Cc: stable@vger.kernel.org # for 4.13 and up
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx-media-csi.c