Thread (25 messages) flat view 25 messages, 5 authors, 2025-09-09

Re: [PATCH net-next v2 02/11] net: stmmac: mdio: provide stmmac_mdio_wait()

From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-09-05 02:17:45
Also in: linux-arm-kernel

On Thu, Sep 04, 2025 at 01:11:05PM +0100, Russell King (Oracle) wrote:
All the readl_poll_timeout()s follow the same pattern - test a register
for a bit being clear every 100us, and timeout after 10ms returning
-EBUSY. Wrap this up into a function to avoid duplicating this.

This slightly changes the return value for stmmac_mdio_write() if the
second readl_poll_timeout() fails - rather than returning -ETIMEDOUT
we return -EBUSY matching the stmmac_mdio_read() behaviour.

Signed-off-by: Russell King (Oracle) <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help