Re: [PATCH master] linux/iopoll: fix inverted condition in read_poll_timeout

2025-04-29 Thread Sascha Hauer
On Sat, 26 Apr 2025 10:14:15 +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

Re: [PATCH master] linux/iopoll: fix inverted condition in read_poll_timeout

2025-04-28 Thread Uwe Kleine-König
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

[PATCH master] linux/iopoll: fix inverted condition in read_poll_timeout

2025-04-26 Thread Ahmad Fatoum
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: