On Fri, Nov 20, 2026 at 04:48:03PM -0800, Florian Fainelli wrote:
> The MDIO write callback reports success even if the controller stays
> busy and no write is issued. Propagate timeout errors and wait for write
> completion so failure of the final transaction is reported to phylib as
> well. Return ETIMEDOUT for read timeouts too.
>
> Use readl_poll_timeout() for write completion with a 20 microsecond sleep
> interval and a 20 millisecond timeout. The MDIO callback runs in sleepable
> context, so avoid adding millisecond busy-waits for completion.
>
> Fixes: 0638dec01e89 ("[PATCH] net: au1000_eth: PHY framework conversion")
> Signed-off-by: Florian Fainelli <f.fa…@gmail.com>
Reviewed-by: Simon Horman <hor…@kernel.org>