Skip to content

net: dsa: Fixes and enhancements

Guenter Roeck linux-devicetree lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest15 patches 9 repliesIn review
  2. v215 patches 9 repliesSuperseded
  3. v114 patches 36 repliesSuperseded

Changes in v3 from the cover letter

- Fix bug in eeprom patches seen if devicetree is enabled:
eeprom-length property is attached to switch devicetree node, not to dsa node, and there was a compile error.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15net: dsa: Don't set skb->protocol on outgoing tagged packetsnet/dsa/tag_dsa.c net/dsa/tag_edsa.c net/dsa/tag_trailer.c+0 -60 replies
2/15net: dsa: Report known silicon revisions for Marvell 88E6060drivers/net/dsa/mv88e6060.c+4 -10 replies
3/15net: dsa: Report known silicon revisions for Marvell 88E6131drivers/net/dsa/mv88e6131.c+8 -40 replies
4/15net: dsa: Add support for Marvell 88E6352MAINTAINERS drivers/net/dsa/Kconfig drivers/net/dsa/Makefile +3 more+490 -00 replies
5/15net: dsa/mv88e6352: Add support for MV88E6176drivers/net/dsa/Kconfig drivers/net/dsa/mv88e6352.c+5 -20 replies
6/15net: dsa: Add support for reporting switch chip temperaturesinclude/net/dsa.h net/dsa/Kconfig net/dsa/dsa.c+158 -00 replies
7/15net: dsa/mv88e6352: Report chip temperaturedrivers/net/dsa/mv88e6352.c+101 -00 replies
8/15net: dsa/mv88e6123_61_65: Report chip temperaturedrivers/net/dsa/mv88e6123_61_65.c+66 -20 replies
9/15net: dsa: Add support for switch EEPROM accessinclude/net/dsa.h net/dsa/dsa.c net/dsa/slave.c+55 -06 replies
10/15dsa: Add new optional devicetree property to describe EEPROM sizeDocumentation/devicetree/bindings/net/dsa/dsa.txt+8 -10 replies
11/15net: dsa/mv88e6352: Implement EEPROM access functionsdrivers/net/dsa/mv88e6352.c drivers/net/dsa/mv88e6xxx.h+224 -30 replies
12/15net: dsa: Add support for reading switch registers with ethtoolinclude/net/dsa.h net/dsa/slave.c+30 -00 replies
13/15net: dsa/mv88e6123_61_65: Add support for reading switch registersdrivers/net/dsa/mv88e6123_61_65.c drivers/net/dsa/mv88e6xxx.c drivers/net/dsa/mv88e6xxx.h+29 -00 replies
14/15net: dsa/mv88e6352: Add support for reading switch registersdrivers/net/dsa/mv88e6352.c+2 -00 replies
15/15net: dsa: Provide additional RMON statisticsdrivers/net/dsa/mv88e6123_61_65.c drivers/net/dsa/mv88e6352.c drivers/net/dsa/mv88e6xxx.c+27 -50 replies

Reviews trailers per patch

None of the 15 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFlorian Fainelli
SeriesR-b
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15
15/15

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

Read the v3 thread

Cover letter [PATCH v3 00/15] net: dsa: Fixes and enhancements

Patch 01/15 addresses a bug indicated by an an annoying and unhelpful log message.

Patches 02/15 and 03/15 are minor enhancements, adding support for known switch revisions.

Patches 04/15 and 05/15 add support for MV88E6352 and MV88E6176.

Patch 06/15 adds support for hardware monitoring, specifically for reporting the chip temperature, to the dsa subsystem.

Patches 07/15 and 08/15 implement hardware monitoring for MV88E6352, MV88E6176, MV88E6123, MV88E6161, and MV88E6165.

Patch 09/15 and 10/15 add support for EEPROM access to the DSA subsystem.

Patch 11/15 implements EEPROM access for MV88E6352 and MV88E6176.

Patch 12/15 adds support for reading switch registers to the DSA subsystem.

Patches 13/15 amd 14/15 implement support for reading switch registers to the drivers for MV88E6352, MV88E6176, MV88E6123, MV88E6161, and MV88E6165.

Patch 15/15 adds support for reading additional RMON registers to the drivers for MV88E6352, MV88E6176, MV88E6123, MV88E6161, and MV88E6165.

The series was tested on top of v3.18-rc2 in an x86 system with MV88E6352. Testing in systems with 88E6131, 88E6060 and MV88E6165 was done earlier (I don't have access to those systems right now). The series was also build tested using my build system at http://server.roeck-us.net:8010/builders.
Look into the 'dsa' column for build results.

The series merges cleanly into net-next as of today (10/29).

v3:
- Fix bug in eeprom patches seen if devicetree is enabled:
eeprom-length property is attached to switch devicetree node, not to dsa node, and there was a compile error.
v2:
- Made reporting chip temperatures through the hwmon subsystem optional with new Kconfig option
- Changed the hwmon chip name to <network device name>_dsa<index>
- Made EEPROM presence and size configurable through platform and devicetree data
- Various minor changes and fixes (see individual patches for details)

----------------------------------------------------------------
The following changes since commit cac7f2429872d3733dc3f9915857b1691da2eb2f:

Linux 3.18-rc2 (2014-10-26 16:48:41 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git dsa

for you to fetch changes up to 245472a4f3ca2a68c5632f2c37da41aa2d3fb2f0:

net: dsa: Provide additional RMON statistics (2014-10-29 08:55:37 -0700)

----------------------------------------------------------------
Guenter Roeck (15):
net: dsa: Don't set skb->protocol on outgoing tagged packets
net: dsa: Report known silicon revisions for Marvell 88E6060
net: dsa: Report known silicon revisions for Marvell 88E6131
net: dsa: Add support for Marvell 88E6352
net: dsa/mv88e6352: Add support for MV88E6176
net: dsa: Add support for reporting switch chip temperatures
net: dsa/mv88e6352: Report chip temperature
net: dsa/mv88e6123_61_65: Report chip temperature
net: dsa: Add support for switch EEPROM access
dsa: Add new optional devicetree property to describe EEPROM size
net: dsa/mv88e6352: Implement EEPROM access functions
net: dsa: Add support for reading switch registers with ethtool
net: dsa/mv88e6123_61_65: Add support for reading switch registers
net: dsa/mv88e6352: Add support for reading switch registers
net: dsa: Provide additional RMON statistics

 Documentation/devicetree/bindings/net/dsa/dsa.txt |   9 +-
 MAINTAINERS                                       |   5 +
 drivers/net/dsa/Kconfig                           |   9 +
 drivers/net/dsa/Makefile                          |   3 +
 drivers/net/dsa/mv88e6060.c                       |   5 +-
 drivers/net/dsa/mv88e6123_61_65.c                 |  73 +-
 drivers/net/dsa/mv88e6131.c                       |  12 +-
 drivers/net/dsa/mv88e6352.c                       | 788 ++++++++++++++++++++++
 drivers/net/dsa/mv88e6xxx.c                       |  53 +-
 drivers/net/dsa/mv88e6xxx.h                       |  15 +
 include/net/dsa.h                                 |  33 +
 net/dsa/Kconfig                                   |  11 +
 net/dsa/dsa.c                                     | 135 ++++
 net/dsa/slave.c                                   |  64 ++
 net/dsa/tag_dsa.c                                 |   2 -
 net/dsa/tag_edsa.c                                |   2 -
 net/dsa/tag_trailer.c                             |   2 -
 17 files changed, 1202 insertions(+), 19 deletions(-)
 create mode 100644 drivers/net/dsa/mv88e6352.c