Re: [PATCH v2 1/2] rust: add udelay() function
From: Danilo Krummrich
Date: Tue Oct 21 2025 - 11:20:47 EST
On Tue Oct 21, 2025 at 5:13 PM CEST, Miguel Ojeda wrote:
> i.e. if they aren't sure what the value is, then I would prefer they
> clamp it explicitly on the callee side (or we provide an explicitly
> clamped version if it is a common case, but it seems to me runtime
> values are already the minority).
Absolutely! Especially given the context udelay() is introduced
(read_poll_timeout_atomic()), the compile time checked version is what we really
want.
Maybe we should even defer a runtime checked / clamped version until it is
actually needed.