[PATCH net-next 00/10] net: dsa: microchip: move non-common function out of ksz_common.c
From: Bastien Curutchet
Date: Thu Jul 02 2026 - 05:23:28 EST
Hi all,
This series continues the rework of the KSZ driver initiated by three
previous series (see [1], [2] & [3]).
The KSZ driver handles more than 20 switches split in several families.
This was previously handled through a common set of dsa_switch_ops
operations that used device-specific ksz_dev_ops callbacks. The three
previous series have split this common struct dsa_switch_ops into 5
to connect the ksz_dev_ops's implentations directly to the new
dsa_swicth ops.
This series continues in the same vein and moves out of ksz_common.c all
the functions that aren't truly common to all the families.
On top of this on-going rework I added PTP and periodic output support for
the KSZ8463 (which was my first goal). There are still more than 13 patches
left for all this so this series will be followed by two others and if you
want to see the full picture we can check my github ([4]).
FYI, I only have a KSZ8463 so, unfortunately, I can't test other switches.
The next series is going to add PTP support for the KSZ8463. The final one
will add periodic output support for the KSZ8463.
[1]: https://lore.kernel.org/r/20260505-clean-ksz-driver-v1-0-05d70fa42461@xxxxxxxxxxx
[2]: https://lore.kernel.org/r/20260521-clean-ksz-2nd-series-v3-0-75c38971c19a@xxxxxxxxxxx
[3]: https://lore.kernel.org/r/20260608-clean-ksz-3rd-v2-0-6e61b7be23c4@xxxxxxxxxxx
[4]: https://github.com/bastien-curutchet/linux/tree/ksz_rework
Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@xxxxxxxxxxx>
---
Bastien Curutchet (Schneider Electric) (8):
net: dsa: microchip: make ksz_is_port_mac_global_usable() static
net: dsa: microchip: move ksz88xx stats handling in ksz8.c
net: dsa: microchip: move ksz_get_gbit() and ksz_get_xmii() to ksz9477.c
net: dsa: microchip: move KSZ9477 errata handling to ksz9477.c
net: dsa: microchip: handle KSZ8-specific tc setup in ksz8.c
net: dsa: microchip: move ksz9477_set_default_prio_queue_mapping() to ksz9477.c
net: dsa: microchip: rename ksz9477_drive_strength_write()
net: dsa: microchip: move the drive strength config out of the common section
Vladimir Oltean (2):
net: dsa: microchip: split ksz8_change_mtu()
net: dsa: microchip: split port_max_mtu() implementation
drivers/net/dsa/microchip/ksz8.c | 429 ++++++++++++++++++++--
drivers/net/dsa/microchip/ksz9477.c | 164 ++++++++-
drivers/net/dsa/microchip/ksz9477.h | 4 +-
drivers/net/dsa/microchip/ksz_common.c | 594 +++----------------------------
drivers/net/dsa/microchip/ksz_common.h | 85 ++++-
drivers/net/dsa/microchip/lan937x_main.c | 6 +-
6 files changed, 679 insertions(+), 603 deletions(-)
---
base-commit: 1c664ec4b9ea827b609d296921ed5bad8a40a158
change-id: 20260615-clean-ksz-4th-1652867e943e
Best regards,
--
Bastien Curutchet (Schneider Electric) <bastien.curutchet@xxxxxxxxxxx>