# Re: \[PATCH v2\] staging: fbtft: Change udelay() to usleep\_range()

- From: Andy Shevchenko \<hidden\>
- Date: 2026-01-13 21:14:29 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2026/01/3366763
- Thread: https://ratatoskr.run/dri-devel/2026/01/3366752/t.md

```text
On Tue, Jan 13, 2026 at 11:06 PM Gideon Adjei [ref] 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
```
