media: imx: imx7-media-csi: Don't set the buffer stride when disabling
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 15 Feb 2021 04:27:10 +0000 (05:27 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Mar 2021 10:59:51 +0000 (11:59 +0100)
There's no need to set the buffer stride to 0 when disabling the CSI.
Remove the extraneous register write.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c

index b4bd161bec402d41228e1a374af514e321bb1e9b..ac6763f8810d24162ed66ffd497e884534735872 100644 (file)
@@ -616,8 +616,6 @@ static void imx7_csi_disable(struct imx7_csi *csi)
 
        imx7_csi_hw_disable_irq(csi);
 
-       imx7_csi_buf_stride_set(csi, 0);
-
        imx7_csi_hw_disable(csi);
 }