diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-04-07 05:25:28 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-04-16 07:37:44 +0100 |
commit | 2bab9442b85665c1f52062dca6a5623dffc18272 (patch) | |
tree | 4dc2d39e664e9f800672e82ccb8b35d04e312789 /drivers/media | |
parent | 605b57c4e888ca5189e87b9db62772eb3ff23735 (diff) | |
download | lwn-2bab9442b85665c1f52062dca6a5623dffc18272.tar.gz lwn-2bab9442b85665c1f52062dca6a5623dffc18272.zip |
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 eddc7fc36337..be12d0d2f42f 100644 --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c @@ -86,7 +86,8 @@ void mxc_isi_channel_m2m_start(struct mxc_isi_pipe *pipe) val = mxc_isi_read(pipe, CHNL_MEM_RD_CTRL); val &= ~CHNL_MEM_RD_CTRL_READ_MEM; mxc_isi_write(pipe, CHNL_MEM_RD_CTRL, val); - udelay(300); + + fsleep(300); val |= CHNL_MEM_RD_CTRL_READ_MEM; mxc_isi_write(pipe, CHNL_MEM_RD_CTRL, val); |