[PATCH net-next v2 00/10] net: dsa: microchip: add PTP support for KSZ8463
From: Bastien Curutchet (Schneider Electric) <hidden>
Date: 2026-07-13 07:11:28
Also in:
lkml
Hi all, This series adds PTP support for the KSZ8463. The KSZ8463 differs quite a lot from other KSZ switches supporting PTP: it has a different interrupt logic and a different 'PTP engine'. This second iteration addresses most of the Sashiko comments of the v1. In [1] I said I would re-order the patches to please Sashiko but in fact it would lead to 'unused function' warnings so I finally decided to keep this order. Patches 1 to 4 add interrupt support for the KSZ8463 Patches 5 to 10 add the PTP support for the KSZ8463 [1]: https://lore.kernel.org/r/20260709-ksz-new-ptp-v1-0-344f02fe739e@bootlin.com (local) Signed-off-by: Bastien Curutchet (Schneider Electric) <redacted> --- Changes in v2: - PATCH 1: - Modify the commit log to explain why IRQ setup isn't done on KSZ8463 - PATCH 4: - Fix the error code path in ksz8463_ptp_port_irq_setup(). - Change the IRQ request/free orders to register/unregister the top level handler first/last - PATCH 8: - Free the skb if its linearization fails - Downgrade ip_summed to CHECKSUM_NONE when clearing the reserved field of the PTP header - PATCH 10: - Ensure the skb is linearized before accessing the PTP header - Link to v1: https://lore.kernel.org/r/20260709-ksz-new-ptp-v1-0-344f02fe739e@bootlin.com (local) --- Bastien Curutchet (Schneider Electric) (10): net: dsa: microchip: implement ksz8463_setup() net: dsa: microchip: split ksz8_config_cpu_port() net: dsa: microchip: allow the use of other IRQ operations. net: dsa: microchip: add PTP interrupt handling for KSZ8463 net: dsa: microchip: adapt port offset for KSZ8463's PTP register net: dsa: tag_ksz: move the KSZ8795 tag handling below ksz_xmit_timestamp() net: dsa: tag_ksz: share code for KSZ8795 and KSZ9893 xmit operations net: dsa: microchip: add KSZ8463 tail tag handling net: dsa: microchip: explicitly enable detection of L2 PTP frames net: dsa: microchip: add two-steps PTP support for KSZ8463 drivers/net/dsa/microchip/ksz8.c | 311 +++++++++++++++++++++++++++----- drivers/net/dsa/microchip/ksz8_reg.h | 1 + drivers/net/dsa/microchip/ksz_common.c | 15 +- drivers/net/dsa/microchip/ksz_common.h | 6 + drivers/net/dsa/microchip/ksz_ptp.c | 266 ++++++++++++++++++++++++++- drivers/net/dsa/microchip/ksz_ptp.h | 16 ++ drivers/net/dsa/microchip/ksz_ptp_reg.h | 10 + include/net/dsa.h | 2 + net/dsa/tag_ksz.c | 232 +++++++++++++++--------- 9 files changed, 721 insertions(+), 138 deletions(-) --- base-commit: a6cfd2762eb18cde4eb34906599ffa7b07c2ed60 change-id: 20260708-ksz-new-ptp-f98db30a8a4f Best regards, -- Bastien Curutchet (Schneider Electric) [off-list ref]