mbox series

[RFC,net-next,0/2] Add SGMII port support to KSZ9477 switch

Message ID 20250128033226.70866-1-Tristram.Ha@microchip.com (mailing list archive)
Headers show
Series Add SGMII port support to KSZ9477 switch | expand

Message

Tristram.Ha@microchip.com Jan. 28, 2025, 3:32 a.m. UTC
From: Tristram Ha <tristram.ha@microchip.com>

This patch is to add SGMII port support to KSZ9477 switch.  It was
recommended to use the XPCS driver in the kernel as the SGMII
implementation uses Synopsys DesignWare IP.  However, that driver does
not work for KSZ9477 in some cases, so it is necessary to modify that
driver.

As there is no way to know whether the new code breaks other
implementations a new field is added to differentiate the new KSZ9477
specific code.  If in future the new code is tested to be compatible
then it can be updated.

Because of that it will require somebody to verify the new code in
different DesignWare implementations.

Tristram Ha (2):
  net: pcs: xpcs: Add special code to operate in Microchip KSZ9477
    switch
  net: dsa: microchip: Add SGMII port support to KSZ9477 switch

 drivers/net/dsa/microchip/ksz9477.c    | 116 ++++++++++++++++++++++++-
 drivers/net/dsa/microchip/ksz9477.h    |   4 +-
 drivers/net/dsa/microchip/ksz_common.c |  37 +++++++-
 drivers/net/dsa/microchip/ksz_common.h |  23 ++++-
 drivers/net/pcs/pcs-xpcs.c             |  52 ++++++++++-
 drivers/net/pcs/pcs-xpcs.h             |   2 +
 include/linux/pcs/pcs-xpcs.h           |   6 ++
 7 files changed, 231 insertions(+), 9 deletions(-)