[PATCH net-next 0/9] net: dsa: microchip: Adjust PTP handling to ease KSZ8463 integration

Bastien Curutchet (Schneider Electric) posted 9 patches 1 month ago
drivers/net/dsa/microchip/ksz_common.c  | 15 +++++++-
drivers/net/dsa/microchip/ksz_common.h  |  7 ++++
drivers/net/dsa/microchip/ksz_ptp.c     | 63 ++++++++++++++++++++-------------
drivers/net/dsa/microchip/ksz_ptp_reg.h | 16 +++------
4 files changed, 64 insertions(+), 37 deletions(-)
[PATCH net-next 0/9] net: dsa: microchip: Adjust PTP handling to ease KSZ8463 integration
Posted by Bastien Curutchet (Schneider Electric) 1 month ago
Hi all,

This series aims to make the PTP handling a bit more generic to ease the
addition of PTP support for the KSZ8463 in an upcoming series. It is not
intented to change any behaviour in the driver here.

Patches 1 & 2 focus on IRQ handling.
Patches 3 to 9 focus on register access.

Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
---
Bastien Curutchet (Schneider Electric) (9):
      net: dsa: microchip: Initialize IRQ's mask outside common_setup()
      net: dsa: microchip: Use dynamic irq offset
      net: dsa: microchip: Use regs[] to access REG_PTP_CLK_CTRL
      net: dsa: microchip: Use regs[] to access REG_PTP_RTC_NANOSEC
      net: dsa: microchip: Use regs[] to access REG_PTP_RTC_SEC
      net: dsa: microchip: Use regs[] to access REG_PTP_RTC_SUB_NANOSEC
      net: dsa: microchip: Use regs[] to access REG_PTP_SUBNANOSEC_RATE
      net: dsa: microchip: Use regs[] to access REG_PTP_MSG_CONF1
      net: dsa: microchip: Wrap timestamp reading in a function

 drivers/net/dsa/microchip/ksz_common.c  | 15 +++++++-
 drivers/net/dsa/microchip/ksz_common.h  |  7 ++++
 drivers/net/dsa/microchip/ksz_ptp.c     | 63 ++++++++++++++++++++-------------
 drivers/net/dsa/microchip/ksz_ptp_reg.h | 16 +++------
 4 files changed, 64 insertions(+), 37 deletions(-)
---
base-commit: cb2200c26cb670ce973b084129a5ff0dcb99b3b4
change-id: 20251106-ksz-rework-a3ee57784a73

Best regards,
-- 
Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>