mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
Merge branch 'net-dsa-mt7530-modernise-register-access-and-add-two-dsa-ops'
Daniel Golle says: ==================== net: dsa: mt7530: modernise register access and add two DSA ops 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. The two remaining reset polls are converted to regmap_read_poll_timeout() and the then-unused dummy poll machinery is dropped. Open-coded register fields are 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. The swallowed MDIO errors Sashiko flagged on v4 5/8 have meanwhile been fixed in tree by "fix swallowed MDIO read errors" and "fix remaining swallowed MDIO access errors", both merged into net-next. This respin is rebased on top of them: regmap_* return values are no longer ignored, which is what most of the semantic patches had to be reworked for. ==================== Link: https://patch.msgid.link/cover.1788190568.git.daniel@makrotopia.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
795eb0feb4
3 changed files with 530 additions and 537 deletions
Loading…
Add table
Add a link
Reference in a new issue