[RFC,net-next,00/11] net: dsa: microchip: lan937x: add switch cascade support

Message ID 20230202125930.271740-1-rakesh.sankaranarayanan@microchip.com
Headers
Series net: dsa: microchip: lan937x: add switch cascade support |

Message

Rakesh Sankaranarayanan Feb. 2, 2023, 12:59 p.m. UTC
  LAN937x switch series support cascade mode of operation, in which two
switch can be connected to work like a single switch having the
advantage of increased number of ports. Two switches can be connected
using SPI, and a dedicated port from each switch will be inter-connected 
forming a data path between two switches, known as cascaded port.

This patch series add support for cascade mode of operation using SPI
protocol and configures cascaded ports from each switches based on the
requirement.

Patch series tested on LAN9373 Dual Board, which is a custom board
with two LAN9373 switches connected in cascaded mode, and PORT 4
used as cascaded port from each switch.

Rakesh Sankaranarayanan (11):
  net: dsa: microchip: lan937x: add cascade tailtag
  net: dsa: microchip: lan937x: update SMI index
  net: dsa: microchip: lan937x: enable cascade port
  net: dsa: microchip: lan937x: update port number for LAN9373
  net: dsa: microchip: lan937x: add shared global interrupt
  net: dsa: microchip: lan937x: get cascade tag protocol
  net: dsa: microchip: lan937x: update switch register
  net: dsa: microchip: lan937x: avoid mib read for cascaded port
  net: dsa: microchip: lan937x: update port membership with dsa port
  net: dsa: microchip: lan937x: update vlan untag membership
  net: dsa: microchip: lan937x: update multicast table

 drivers/net/dsa/microchip/ksz9477.c      |  8 ++-
 drivers/net/dsa/microchip/ksz_common.c   | 47 ++++++++++----
 drivers/net/dsa/microchip/ksz_common.h   |  3 +
 drivers/net/dsa/microchip/lan937x.h      |  1 +
 drivers/net/dsa/microchip/lan937x_main.c | 33 +++++++++-
 drivers/net/dsa/microchip/lan937x_reg.h  |  3 +
 include/net/dsa.h                        | 17 +++++
 net/dsa/tag_ksz.c                        | 80 ++++++++++++++++++++++--
 8 files changed, 173 insertions(+), 19 deletions(-)