Skip to content

SJA1105 DSA driver preparation for new switch introduction (SJA1110)

Vladimir Oltean netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesApplied 9/9

Patches in v1 All 9 applied

#Subject and filesSizeRepliesApplied
1/9net: dsa: sja1105: parameterize the number of portsdrivers/net/dsa/sja1105/sja1105_clocking.c drivers/net/dsa/sja1105/sja1105_flower.c drivers/net/dsa/sja1105/sja1105_main.c +2 more+53 -380 repliesApplied
2/9net: dsa: sja1105: avoid some work for unused portsdrivers/net/dsa/sja1105/sja1105_main.c+22 -50 repliesApplied
3/9net: dsa: sja1105: dimension the data structures for a larger port countdrivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_flower.c drivers/net/dsa/sja1105/sja1105_main.c +2 more+25 -240 repliesApplied
4/9net: dsa: sja1105: don't assign the host port using dsa_upstream_port()drivers/net/dsa/sja1105/sja1105_main.c+10 -10 repliesApplied
5/9net: dsa: sja1105: skip CGU configuration if it's unnecessarydrivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_clocking.c drivers/net/dsa/sja1105/sja1105_main.c +2 more+44 -20 repliesApplied
6/9net: dsa: sja1105: dynamically choose the number of static config table entriesdrivers/net/dsa/sja1105/sja1105_main.c+16 -160 repliesApplied
7/9net: dsa: sja1105: use sja1105_xfer_u32 for the reset proceduredrivers/net/dsa/sja1105/sja1105_spi.c+6 -160 repliesApplied
8/9net: dsa: sja1105: configure the multicast policers, if presentdrivers/net/dsa/sja1105/sja1105_main.c+4 -00 repliesApplied
9/9net: dsa: sja1105: allow the frame buffer size to be customizeddrivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_main.c drivers/net/dsa/sja1105/sja1105_spi.c +2 more+27 -220 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

From: Vladimir Oltean <[email protected]>

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(-)
Signature · 1 line
2.25.1