From: Oskar Ray-Frayssinet Date: Tue, 10 Mar 2026 15:03:14 +0000 (+0100) Subject: staging: media: atomisp: replace msleep() with fsleep() in atomisp-gc2235.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6f729763c6a629893e679972dac9e2ab21f018f;p=thirdparty%2Fkernel%2Flinux.git staging: media: atomisp: replace msleep() with fsleep() in atomisp-gc2235.c Replace msleep(5) with fsleep(5000) to avoid sleeping longer than necessary. msleep() with values less than 20ms may sleep for up to 20ms due to timer granularity. fsleep() selects the appropriate sleep function automatically. Signed-off-by: Oskar Ray-Frayssinet Signed-off-by: Sakari Ailus --- diff --git a/drivers/staging/media/atomisp/i2c/atomisp-gc2235.c b/drivers/staging/media/atomisp/i2c/atomisp-gc2235.c index 998c9f46bd06..f9cc5f45fe00 100644 --- a/drivers/staging/media/atomisp/i2c/atomisp-gc2235.c +++ b/drivers/staging/media/atomisp/i2c/atomisp-gc2235.c @@ -433,7 +433,7 @@ static int power_up(struct v4l2_subdev *sd) goto fail_power; } - msleep(5); + fsleep(5000); return 0; fail_clk: