[PATCH master] linux/iopoll: fix inverted condition in read_poll_timeout
Uwe Kleine-König
uwe at kleine-koenig.org
Mon Apr 28 00:29:40 PDT 2025
Hello Ahmad,
On Sat, Apr 26, 2025 at 10:14:15AM +0200, Ahmad Fatoum wrote:
> If there is no timeout, we wait indefinitely and don't care for the
> initial time. A fixup to silence a warning because of multiplication in
> boolean context added an explicit comparison and this ended up omitting
> get_time_ns() in the wrong case.
>
> Flip it to fix, among others, MDIO on RK3568.
>
> Fixes: 554bbc479c09 ("include: linux/iopoll.h: add optional PBL support")
> Reported-by: Uwe Kleine-König <uwe at kleine-koenig.org>
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
This indeed fixes networking for me. Thanks a lot for your patch.
Tested-by: Uwe Kleine-König <uwe at kleine-koenig.org>
Reviewed-by: Uwe Kleine-König <uwe at kleine-koenig.org>
Best regards
Uwe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20250428/e0046753/attachment.sig>
More information about the barebox
mailing list