Re: [PATCH v2] staging: fbtft: Change udelay() to usleep_range()
From: Andy Shevchenko
Date: Tue Jan 13 2026 - 16:14:29 EST
On Tue, Jan 13, 2026 at 11:06 PM Gideon Adjei <gideonadjei.dev@xxxxxxxxx> wrote:
>
> Replace udelay() calls >= 100us with usleep_range() to avoid busy-waiting.
>
> The delays are used in init_display() callbacks. These callbacks are
> invoked by fbtft_probe_common() during the driver's probe path. the
> probe path runs in process context which already uses sleeping APIs.
> This makes usleep_range() safe to use in these situations.
Nice, now can we switch to modern API, i.e. fsleep()?
--
With Best Regards,
Andy Shevchenko