mbox series

[net-next,0/9] SJA1105 DSA driver preparation for new switch introduction (SJA1110)

Message ID 20210524131421.1030789-1-olteanv@gmail.com
Headers show
Series SJA1105 DSA driver preparation for new switch introduction (SJA1110) | expand

Message

Vladimir Oltean May 24, 2021, 1:14 p.m. UTC
From: Vladimir Oltean <vladimir.oltean@nxp.com>

This series contains refactoring patches which are necessary before the
support for the new NXP SJA1110 switch can be introduced in this driver.

As far as this series is concerned, here is the list of major changes
introduced with the SJA1110:
- 11 ports vs 5
- port 0 goes to the internal microcontroller, so it is unused as far as
  DSA is concerned
- the Clock Generation Unit does not need any configuration for
  setting up the PLLs for MII/RMII/RGMII
- the L2 Policing Table contains multicast policers too, not just
  broadcast and per-traffic class. These must be minimally initialized.
- more frame buffers

Vladimir Oltean (9):
  net: dsa: sja1105: parameterize the number of ports
  net: dsa: sja1105: avoid some work for unused ports
  net: dsa: sja1105: dimension the data structures for a larger port
    count
  net: dsa: sja1105: don't assign the host port using
    dsa_upstream_port()
  net: dsa: sja1105: skip CGU configuration if it's unnecessary
  net: dsa: sja1105: dynamically choose the number of static config
    table entries
  net: dsa: sja1105: use sja1105_xfer_u32 for the reset procedure
  net: dsa: sja1105: configure the multicast policers, if present
  net: dsa: sja1105: allow the frame buffer size to be customized

 drivers/net/dsa/sja1105/sja1105.h             |  35 ++--
 drivers/net/dsa/sja1105/sja1105_clocking.c    |  36 +++-
 drivers/net/dsa/sja1105/sja1105_flower.c      |  13 +-
 drivers/net/dsa/sja1105/sja1105_main.c        | 156 +++++++++++-------
 drivers/net/dsa/sja1105/sja1105_spi.c         |  41 ++---
 .../net/dsa/sja1105/sja1105_static_config.c   |  13 +-
 .../net/dsa/sja1105/sja1105_static_config.h   |   7 +-
 drivers/net/dsa/sja1105/sja1105_tas.c         |  14 +-
 drivers/net/dsa/sja1105/sja1105_tas.h         |   2 +-
 drivers/net/dsa/sja1105/sja1105_vl.c          |   2 +-
 10 files changed, 201 insertions(+), 118 deletions(-)