Re: [PATCH net-next 1/3] r8169: propagate errors from PHY write operations

From: Andrew Lunn

Date: Wed Sep 16 2026 - 17:15:36 EST


On Wed, Sep 16, 2026 at 06:10:00PM -0300, Matheus Alves de Almeida wrote:
> > Maybe rewrite rtl_loop_wait_low(), _high() and rtl_loop_wait() to use
> > iopoll.h?
>
> While I don’t think this fits the scope of this series, I’d be willing
> to look into it as a follow-up.

You trimmed too much context.

The nice thing about iopoll.h is that they all return -ETIMEDOUT, or
some other error code on error. So your current patch looking at the
Boolean return value becomes redundant, you just follow the normal
pattern:

ret = rtl_loop_wait_low();
if (ret)
return ret;

So i think this is in scope, otherwise you are going to rewrite 90% of
this patch when you do introduce it.

Andrew