Re: [PATCH v5 03/18] iio: magnetometer: ak8975: replace usleep_range() with fsleep()
From: Maxwell Doose
Date: Wed May 06 2026 - 02:35:48 EST
On Wed, May 6, 2026 at 1:19 AM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxx> wrote:
>
[snip]
>
> This simple patch doesn't change the minimum time to sleep, assuming the driver
> was tested previously (and it had to be), the given change is very unlikely to
> introduce regressions. Also note that the similar changes have been done all
> around the kernel in the past few month and I haven't heard it brought a
> regression to the users (but if you, Maxwell, have some pointers to otherwise,
> please share, I would really like to see such a report!).
>
Alright, fair enough. I'm just not as familiar as I'd like to be with
the fsleep() stuff and wanted to make sure the timings were good
before guaranteeing anything.
best regards,
max
>
> Yes, fsleep() is recommended way of non-atomic sleeps with a microsecond
> granularity.
>
> --
> With Best Regards,
> Andy Shevchenko
>
>