Thread (10 messages) flat view 10 messages, 3 authors, 9h ago

Re: [PATCH net 2/4] net: dsa: mt7530: check bus->read() error in core_rmw()

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

On Thu, Jul 30, 2026 at 05:03:17PM +0100, Daniel Golle wrote:
core_rmw() accesses the MMD core registers directly rather than
through the regmap and has the same unchecked bus->read() as the
one just fixed in the MDIO regmap backend: a negative errno is
consumed as register data, modified and written back to the switch.
Check the read and bail out like the surrounding bus accesses do.

Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 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