Skip to content

More Marvell DSA refactring and fixup

Andrew Lunn netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10net: dsa: Centralise global and port setup code into mv88e6xxx.drivers/net/dsa/mv88e6123_61_65.c drivers/net/dsa/mv88e6131.c drivers/net/dsa/mv88e6171.c +3 more+486 -6600 replies
2/10net: dsa: Centralize setting up portsdrivers/net/dsa/mv88e6123_61_65.c drivers/net/dsa/mv88e6131.c drivers/net/dsa/mv88e6171.c +3 more+20 -370 replies
3/10net: dsa: Converting remaining registers to mnemonicsdrivers/net/dsa/mv88e6123_61_65.c drivers/net/dsa/mv88e6131.c drivers/net/dsa/mv88e6171.c +2 more+69 -160 replies
4/10net: dsa: Move mv88e6172 support into mv88e6352 family driverdrivers/net/dsa/Kconfig drivers/net/dsa/mv88e6171.c drivers/net/dsa/mv88e6352.c+15 -510 replies
5/10net: dsa: mv88e6171: Add other members of the familydrivers/net/dsa/Kconfig drivers/net/dsa/mv88e6171.c+12 -30 replies
6/10net: dsa: mv88e6131: Add support for mv88e6185drivers/net/dsa/mv88e6131.c+3 -00 replies
7/10net: dsa: mv88e6xxx: Replace PHY mutex by SMI mutexdrivers/net/dsa/mv88e6xxx.c drivers/net/dsa/mv88e6xxx.h+63 -590 replies
8/10net: dsa: mv88e6xxx: Replace stats mutex with SMI mutexdrivers/net/dsa/mv88e6xxx.c+27 -230 replies
9/10net: dsa: mv88e6xxx: Fix false positive lockdep splatdrivers/net/dsa/mv88e6xxx.c+37 -90 replies
10/10net: dsa: Add lockdep class to tx queues to avoid lockdep splatnet/dsa/slave.c+12 -21 reply

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchFlorian Fainelli
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 00/10] More Marvell DSA refactring and fixup

This patch setup continues the refactoring and cleanup of the Marvell DSA drivers.

Patch #1 Centralizes the duplicated parts of port setup and global setup into the shared mv88e6xxx.

Patch #2 Centralizes looping over the ports setting them up

Patch #3 Uses mnemonics for the remaining register access in the drivers.

Patch #4 The 6172 is actually a member of the 6352 family. This moves the probe code into the correct driver.

Patch #5 Adds more members of the 6171 family to the 6171 driver. The new devices are untested.

Patch #6 The 6185 is a member of the 6131 family. Add it to the probe code of the 6131 driver.

Patch #7 and Patch #8 Simply the mutex's in mv88e6xxx.c. The SMI bus is the bottleneck, not the granularity of the mutex's so simply the code down to a single mutex.

Patch #8 Fixes a false positive lockdep splat, due to nested uses of MDIO busses.

Patch #9 Fixes another false positive lockdep splat with the transmit queue because of stacked Ethernet devices.

Andrew Lunn (10):
net: dsa: Centralise global and port setup code into mv88e6xxx.
net: dsa: Centralize setting up ports
net: dsa: Converting remaining registers to mnemonics
net: dsa: Move mv88e6172 support into mv88e6352 family driver
net: dsa: mv88e6171: Add other members of the family
net: dsa: mv88e6131: Add support for mv88e6185
net: dsa: mv88e6xxx: Replace PHY mutex by SMI mutex
net: dsa: mv88e6xxx: Replace stats mutex with SMI mutex
net: dsa: mv88e6xxx: Fix false positive lockdep splat
net: dsa: Add lockdep class to tx queues to avoid lockdep splat

 drivers/net/dsa/Kconfig           |  12 +-
 drivers/net/dsa/mv88e6123_61_65.c | 186 +----------
 drivers/net/dsa/mv88e6131.c       | 185 ++---------
 drivers/net/dsa/mv88e6171.c       | 234 ++------------
 drivers/net/dsa/mv88e6352.c       | 188 +----------
 drivers/net/dsa/mv88e6xxx.c       | 636 +++++++++++++++++++++++++++++++-------
 drivers/net/dsa/mv88e6xxx.h       |  99 +++++-
 net/dsa/slave.c                   |  14 +-
 8 files changed, 719 insertions(+), 835 deletions(-)
Signature · 1 line
2.1.4