Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/8] net: dsa: mt7530: modernise register access and add two DSA ops
@ 2026-06-10 19:55 Daniel Golle
  2026-06-10 19:55 ` [PATCH net-next 1/8] net: dsa: mt7530: move MDIO bus locking into regmap Daniel Golle
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Daniel Golle @ 2026-06-10 19:55 UTC (permalink / raw)
  To: Chester A. Unal, Daniel Golle, Andrew Lunn, Vladimir Oltean,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Matthias Brugger, AngeloGioacchino Del Regno, Russell King,
	netdev, linux-kernel, linux-arm-kernel, linux-mediatek

The mt7530 driver carries its own register accessors that predate the
regmap conversion and now largely duplicate what regmap already
provides, including locking. Most of this series removes that layer.

It first moves the MDIO bus locking into the switch regmap via
.lock/.unlock callbacks, matching the PCS regmaps, so any path reaching
the regmap is serialised automatically. With the wrappers no longer
adding locking, the thin mt7530_mii_* indirection is folded away and the
remaining accessors are replaced mechanically with the plain regmap API,
using the coccinelle semantic patches included in the commit messages.
Open-coded register fields are then converted to FIELD_GET/FIELD_PREP.
None of this is intended to change behaviour.

The last two patches implement .port_fast_age, which flushes dynamically
learned MAC entries on topology changes, and .port_change_conduit, which
moves a user port's CPU-port affinity at runtime.

Daniel Golle (8):
  net: dsa: mt7530: move MDIO bus locking into regmap
  net: dsa: mt7530: fold mt7530_mii_write/read into mt7530_write/read
  net: dsa: mt7530: replace mt7530_write with regmap_write
  net: dsa: mt7530: replace mt7530_rmw/set/clear with regmap API
  net: dsa: mt7530: replace mt7530_read with regmap_read
  net: dsa: mt7530: convert to use field accessor macros
  net: dsa: mt7530: implement port_fast_age
  net: dsa: mt7530: implement port_change_conduit op

 drivers/net/dsa/mt7530-mdio.c |   9 +-
 drivers/net/dsa/mt7530.c      | 791 +++++++++++++++++-----------------
 drivers/net/dsa/mt7530.h      | 209 +++++----
 3 files changed, 517 insertions(+), 492 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-06-10 19:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-10 19:55 [PATCH net-next 0/8] net: dsa: mt7530: modernise register access and add two DSA ops Daniel Golle
2026-06-10 19:55 ` [PATCH net-next 1/8] net: dsa: mt7530: move MDIO bus locking into regmap Daniel Golle
2026-06-10 19:55 ` [PATCH net-next 2/8] net: dsa: mt7530: fold mt7530_mii_write/read into mt7530_write/read Daniel Golle
2026-06-10 19:55 ` [PATCH net-next 3/8] net: dsa: mt7530: replace mt7530_write with regmap_write Daniel Golle
2026-06-10 19:55 ` [PATCH net-next 4/8] net: dsa: mt7530: replace mt7530_rmw/set/clear with regmap API Daniel Golle
2026-06-10 19:56 ` [PATCH net-next 5/8] net: dsa: mt7530: replace mt7530_read with regmap_read Daniel Golle
2026-06-10 19:56 ` [PATCH net-next 6/8] net: dsa: mt7530: convert to use field accessor macros Daniel Golle
2026-06-10 19:56 ` [PATCH net-next 7/8] net: dsa: mt7530: implement port_fast_age Daniel Golle
2026-06-10 19:56 ` [PATCH net-next 8/8] net: dsa: mt7530: implement port_change_conduit op Daniel Golle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox