[PATCH net-next v4 0/7] net: dsa: motorcomm: MIB fixup

From: David Yang

Date: Mon Sep 21 2026 - 16:33:34 EST


Fix (theoretical) MIB inconsistency and prepare for new devices. No new
features are introduced.

v4:
- reuse port_to_priv helper
- re-enable delayed_work on port_setup
- disable preemption for u64_stats_set
v3: https://lore.kernel.org/r/20260906131414.2683362-1-mmyangfl@xxxxxxxxx
- fix build errors
- fix logic error on MIB buffer creation
v2: https://lore.kernel.org/r/20260904162952.709368-1-mmyangfl@xxxxxxxxx
- split patches
v1: https://lore.kernel.org/r/20260903143514.532023-1-mmyangfl@xxxxxxxxx

David Yang (7):
net: dsa: motorcomm: Hoist port_to_priv helper into chip.h
net: dsa: motorcomm: Rename MIB stuff
net: dsa: motorcomm: Split MIB buffers
net: dsa: motorcomm: Split MIB module
net: dsa: motorcomm: Use u64_stats_t for MIB stats
net: dsa: motorcomm: Fix MIB synchronization
net: dsa: motorcomm: Use safe 64-bit counter reader

drivers/net/dsa/motorcomm/Makefile | 1 +
drivers/net/dsa/motorcomm/chip.c | 413 +++------------------------
drivers/net/dsa/motorcomm/chip.h | 125 +--------
drivers/net/dsa/motorcomm/leds.c | 14 +-
drivers/net/dsa/motorcomm/mib.c | 431 +++++++++++++++++++++++++++++
drivers/net/dsa/motorcomm/mib.h | 167 +++++++++++
drivers/net/dsa/motorcomm/smi.c | 30 ++
drivers/net/dsa/motorcomm/smi.h | 2 +
8 files changed, 683 insertions(+), 500 deletions(-)
create mode 100644 drivers/net/dsa/motorcomm/mib.c
create mode 100644 drivers/net/dsa/motorcomm/mib.h

--
2.53.0