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

From: Matthew Wilcox

Date: Tue Jan 13 2026 - 12:53:58 EST


On Tue, Jan 13, 2026 at 09:27:56AM -0800, Gideon Adjei wrote:
> Replace udelay() calls >= 100us with usleep_range() to avoid busy-waiting.
> This allows the scheduler to run other tasks while waiting.

Your commit message omits how you know it's safe to sleep in these
situations. Are we holding a spinlock or being called in interrupt
context, for example?