Re: [PATCH v5 03/18] iio: magnetometer: ak8975: replace usleep_range() with fsleep()
From: Jonathan Cameron
Date: Wed May 06 2026 - 12:40:01 EST
On Wed, 6 May 2026 01:35:32 -0500
Maxwell Doose <m32285159@xxxxxxxxx> wrote:
> 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
Applied this one to the testing branch of iio.git
Thanks,
Jonathan
>
>
>
> >
> > Yes, fsleep() is recommended way of non-atomic sleeps with a microsecond
> > granularity.
> >
> > --
> > With Best Regards,
> > Andy Shevchenko
> >
> >