Skip to content

Commit 2bab944

Browse files
pinchartlmchehab
authored andcommitted
media: nxp: imx8-isi: Replace udelay() with fsleep()
The ISI driver uses udelay() to wait for 300µs in a context where it can sleep. Use fsleep() instead. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
1 parent 605b57c commit 2bab944

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ void mxc_isi_channel_m2m_start(struct mxc_isi_pipe *pipe)
8686
val = mxc_isi_read(pipe, CHNL_MEM_RD_CTRL);
8787
val &= ~CHNL_MEM_RD_CTRL_READ_MEM;
8888
mxc_isi_write(pipe, CHNL_MEM_RD_CTRL, val);
89-
udelay(300);
89+
90+
fsleep(300);
9091

9192
val |= CHNL_MEM_RD_CTRL_READ_MEM;
9293
mxc_isi_write(pipe, CHNL_MEM_RD_CTRL, val);

0 commit comments

Comments
 (0)