Re: [PATCH net v4 04/10] net: au1000: report MDIO transaction timeouts

From: Simon Horman

Date: Tue Dec 01 2026 - 06:00:58 EST


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.fainelli@xxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>