Thread (10 messages) flat view 10 messages, 3 authors, 3d ago

Re: [PATCH net 3/4] net: dsa: mt7530: error out on failed PHY_IAC command writes

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-07-30 16:16:25
Also in: linux-arm-kernel, linux-mediatek, lkml

On Thu, Jul 30, 2026 at 05:03:29PM +0100, Daniel Golle wrote:
MT7531_PHY_ACS_ST is only ever set by the command write that precedes
each poll in the MT7531 indirect PHY access functions, and that
write's return value is discarded. A failed write leaves ACS_ST at 0
from the previous access, so the poll succeeds on its first iteration
and the functions return stale IAC contents as if they were fresh PHY
data. Check the writes and bail out before polling.

Fixes: c288575f7810 ("net: dsa: mt7530: Add the support of MT7531 switch")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
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