From: Jacopo Mondi Date: Tue, 14 Feb 2023 17:35:39 +0000 (+0000) Subject: media: nxp: imx8-isi: Remove 300ms sleep after enabling channel X-Git-Tag: v6.6.17~5047^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=20af6be6bee4c3af80aac9b44b3d32d89824dde7;p=platform%2Fkernel%2Flinux-rpi.git media: nxp: imx8-isi: Remove 300ms sleep after enabling channel The current implementation of the mxc_isi_channel_enable() function has a hard 300ms sleep. This was copied from the NXP BSP, which has since dropped the sleep in a commit that implied the delay was meant to wait for the sensor to be "stable". As the sensor is started after the ISI, the delay won't affect sensor operation. Drop it. Signed-off-by: Jacopo Mondi Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c index be12d0d..db538f3 100644 --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c @@ -515,8 +515,6 @@ void mxc_isi_channel_enable(struct mxc_isi_pipe *pipe) mxc_isi_write(pipe, CHNL_CTRL, val); mutex_unlock(&pipe->lock); - - msleep(300); } void mxc_isi_channel_disable(struct mxc_isi_pipe *pipe)