Re: [PATCH] i2c: ocores: Use read_poll_timeout_atomic to avoid false poll timeouts
From: Andi Shyti
Date: Thu Mar 26 2026 - 18:47:14 EST
Hi,
On Tue, Mar 24, 2026 at 03:05:56PM +0100, Martin Aberer wrote:
> Replace the manual polling loop in ocores_wait() with the kernel helper
> read_poll_timeout_atomic(). This simplifies the code and ensures robust
> timeout handling. By using this helper, we avoid spurious timeout errors
> that could occur under high CPU load or preemption, as the macro handles
> timing and condition checks atomically.
>
> Signed-off-by: Martin Aberer <martin.aberer@xxxxxxxxxxxxx>
Please, next time don't send this as --in-reply-to, but please
send it as a v2 with a proper changelog.
Other than this, Christian, Andrew, anyone who wants to give this
a look?
Thanks,
Andi