[PATCH net-next v5 0/6] net: dsa: motorcomm: MIB fixup
From: David Yang
Date: Sun Oct 04 2026 - 12:06:47 EST
Fix (theoretical) MIB inconsistency and prepare for new devices. No new
features are introduced.
v5:
- rebase
- hoist type casting helper into chip.h
- fix enable_delayed_work/disable_delayed_work pair
- remove counter reader in favor of an independent series
- reword commit messages
v4: https://lore.kernel.org/r/20260921203040.1203911-1-mmyangfl@xxxxxxxxx
- 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 (6):
net: dsa: motorcomm: Hoist type casting 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
drivers/net/dsa/motorcomm/Makefile | 1 +
drivers/net/dsa/motorcomm/chip.c | 534 ++++++---------------------
drivers/net/dsa/motorcomm/chip.h | 128 +------
drivers/net/dsa/motorcomm/leds.c | 7 +-
drivers/net/dsa/motorcomm/mdio_bus.c | 10 +-
drivers/net/dsa/motorcomm/mib.c | 431 +++++++++++++++++++++
drivers/net/dsa/motorcomm/mib.h | 167 +++++++++
drivers/net/dsa/motorcomm/pcs-921x.c | 8 +-
8 files changed, 721 insertions(+), 565 deletions(-)
create mode 100644 drivers/net/dsa/motorcomm/mib.c
create mode 100644 drivers/net/dsa/motorcomm/mib.h
--
2.53.0