[PATCH net-next v4 0/8] net: dsa: motorcomm: Add SerDes PCS

David Yang posted 8 patches 1 day, 11 hours ago
drivers/net/dsa/motorcomm/Makefile   |   2 +
drivers/net/dsa/motorcomm/chip.c     | 524 +++++++--------------------
drivers/net/dsa/motorcomm/chip.h     | 106 +++---
drivers/net/dsa/motorcomm/leds.c     |  14 +-
drivers/net/dsa/motorcomm/mdio_bus.c | 301 +++++++++++++++
drivers/net/dsa/motorcomm/mdio_bus.h |  54 +++
drivers/net/dsa/motorcomm/pcs-921x.c | 247 +++++++++++++
drivers/net/dsa/motorcomm/pcs.h      |  13 +
8 files changed, 805 insertions(+), 456 deletions(-)
create mode 100644 drivers/net/dsa/motorcomm/mdio_bus.c
create mode 100644 drivers/net/dsa/motorcomm/mdio_bus.h
create mode 100644 drivers/net/dsa/motorcomm/pcs-921x.c
create mode 100644 drivers/net/dsa/motorcomm/pcs.h
[PATCH net-next v4 0/8] net: dsa: motorcomm: Add SerDes PCS
Posted by David Yang 1 day, 11 hours ago
Rework chip_info to tell SERDES ports from xMII ones, identify the port type
at runtime from the pad configuration, and add a phylink PCS driver for the
internal SerDes, so that the link of SERDES ports can be established through
in-band negotiation instead of a fixed configuration.

v4:
  - fix 1000basex
  - YT921X_SPEED_NUM -> YT921X_SPEED_INVALID
  - reword commit message
v3: https://lore.kernel.org/r/20260917185010.3189199-1-mmyangfl@gmail.com
  - fix build error
v2: https://lore.kernel.org/r/20260916164310.3168269-1-mmyangfl@gmail.com
  - Remove YT921X_PORT_MASK_* macros
  - code style nits
  - unconditionally write BMCR_ANRESTART
v1: https://lore.kernel.org/r/20260909190541.466476-1-mmyangfl@gmail.com

David Yang (8):
  net: dsa: motorcomm: Remove YT921X_PORT_MASK_* macros
  net: dsa: motorcomm: Split xMII and SERDES port masks
  net: dsa: motorcomm: Identify port type at runtime
  net: dsa: motorcomm: Fix register bit field names
  net: dsa: motorcomm: Introduce yt921x_speed
  net: dsa: motorcomm: Hoist port_to_priv helper into chip.h
  net: dsa: motorcomm: Split MDIO bus module
  net: dsa: motorcomm: Add SerDes PCS

 drivers/net/dsa/motorcomm/Makefile   |   2 +
 drivers/net/dsa/motorcomm/chip.c     | 524 +++++++--------------------
 drivers/net/dsa/motorcomm/chip.h     | 106 +++---
 drivers/net/dsa/motorcomm/leds.c     |  14 +-
 drivers/net/dsa/motorcomm/mdio_bus.c | 301 +++++++++++++++
 drivers/net/dsa/motorcomm/mdio_bus.h |  54 +++
 drivers/net/dsa/motorcomm/pcs-921x.c | 247 +++++++++++++
 drivers/net/dsa/motorcomm/pcs.h      |  13 +
 8 files changed, 805 insertions(+), 456 deletions(-)
 create mode 100644 drivers/net/dsa/motorcomm/mdio_bus.c
 create mode 100644 drivers/net/dsa/motorcomm/mdio_bus.h
 create mode 100644 drivers/net/dsa/motorcomm/pcs-921x.c
 create mode 100644 drivers/net/dsa/motorcomm/pcs.h

--
2.53.0