On Tue Mar 10 16:03:14 2026 +0100, Oskar Ray-Frayssinet wrote:
> 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 <[email protected]>
> Signed-off-by: Sakari Ailus <[email protected]>
Patch committed.
Thanks,
Sakari Ailus
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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:
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]