Re: [PATCH v2] staging: fbtft: Change udelay() to usleep_range()

From
Andy Shevchenko <hidden>
Date
2026-01-13 21:14:29
Also in
dri-devel, linux-staging, lkml
Reply to
Gideon Adjei, 2026-01-13
On Tue, Jan 13, 2026 at 11:06 PM Gideon Adjei [off-list 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
Thread (2 messages) 2 messages, 2 authors, last reply 2026-01-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help