Re: [PATCH 10/13] media: i2c: ds90ub960: Reduce sleep in ub960_rxport_wait_locks()
From: Andy Shevchenko
Date: Thu Oct 10 2024 - 10:03:17 EST
On Fri, Oct 04, 2024 at 05:46:41PM +0300, Tomi Valkeinen wrote:
> We currently sleep for 50 ms at the end of each iteration in
> ub960_rxport_wait_locks(). This feels a bit excessive, especially as we
> always do at least two loops, so there's always at least one sleep, even
> if we already have a stable lock.
>
> Change the sleep to 10 ms.
...
> - msleep(50);
> + fsleep(10 * 1000);
USEC_PER_MSEC
Can also a comment be added on top of this call to explain the choice?
--
With Best Regards,
Andy Shevchenko