[PATCH net-next v3 00/10] net: dsa: microchip: add periodic output support for the KSZ8463
From: Bastien Curutchet (Schneider Electric) <hidden>
Date: 2026-09-08 07:27:55
Also in:
lkml
This series aims to add periodic output support for the KSZ8463. The way the KSZ8463 handles periodic output differs from that of the other KSZ switches. It therefore needs its own set of perout callbacks (configure, start, reset, enable, restart). Patches 1 to 3 prepare the driver to accept different kinds of periodic output settings. Patches 4 to 9 extract a set of functions from the existing periodic output support that can be reused by the KSZ8463, avoiding code duplication as much as possible. Patch 10 adds periodic output support for the KSZ8463. Signed-off-by: Bastien Curutchet (Schneider Electric) <redacted> --- Changes in v3: - PATCH 10: Fix build error when CONFIG_NET_DSA_MICROCHIP_KSZ_PTP=n - Link to v2: https://lore.kernel.org/r/20260902-ksz-perout-v2-0-6f277fcc9e68@bootlin.com (local) Changes in v2: - PATCH 1: Init n_pins for all PTP capable switches - PATCH 2: Init n_per_out for all PTP capable switches - Link to v1: https://lore.kernel.org/r/20260831-ksz-perout-v1-0-14202db763b3@bootlin.com (local) --- Bastien Curutchet (Schneider Electric) (10): net: dsa: microchip: add the number of pins to chip infos net: dsa: microchip: add the number of periodic signals to chip infos net: dsa: microchip: use dynamic mask to check pulse width validity net: dsa: microchip: extract PTP callbacks configuration from PTP registration net: dsa: microchip: extract ptp_get_pin net: dsa: microchip: extract compute_width net: dsa: microchip: extract prepare reset net: dsa: microchip: extract time update net: dsa: microchip: extract time adjustment net: dsa: microchip: add periodic output support for the KSZ8463 drivers/net/dsa/microchip/ksz8.c | 2 + drivers/net/dsa/microchip/ksz9477.c | 1 + drivers/net/dsa/microchip/ksz_common.c | 22 ++ drivers/net/dsa/microchip/ksz_common.h | 2 + drivers/net/dsa/microchip/ksz_ptp.c | 473 ++++++++++++++++++++++++++----- drivers/net/dsa/microchip/ksz_ptp.h | 6 +- drivers/net/dsa/microchip/ksz_ptp_reg.h | 16 ++ drivers/net/dsa/microchip/lan937x_main.c | 1 + 8 files changed, 452 insertions(+), 71 deletions(-) --- base-commit: f7f619ecda5761bd48578764ef5ff9e8fd97b916 change-id: 20260825-ksz-perout-af9813e12158 Best regards, -- Bastien Curutchet (Schneider Electric) [off-list ref]