Skip to content

net: dsa: mxl-gsw1xx: setup polarities and validate chip

Daniel Golle linux-devicetree lkml netdev 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesApplied 3/3
  2. v23 patches 1 replySuperseded
  3. v13 patches 9 repliesSuperseded

Changes in v3 from the cover letter

* be more clear about describing polarity at port, ie. external pin level

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: net: dsa: lantiq,gswip: reference common PHY propertiesDocumentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml+4 -01 replyApplied
2/3net: dsa: mxl-gsw1xx: configure SerDes port polaritiesdrivers/net/dsa/lantiq/Kconfig drivers/net/dsa/lantiq/mxl-gsw1xx.c+29 -110 repliesApplied
3/3net: dsa: mxl-gsw1xx: validate chip IDdrivers/net/dsa/lantiq/mxl-gsw1xx.c drivers/net/dsa/lantiq/mxl-gsw1xx.h+35 -10 repliesApplied

Reviews trailers per patch

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

PatchVladimir OlteanRob Herring (Arm)
SeriesR-b
1/3A-b
2/3
3/3

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 net-next v3 0/3] net: dsa: mxl-gsw1xx: setup polarities and validate chip

Now that common PHY properties make it easy to configure the SerDes RX and TX polarities, use that for the SGMII/1000Base-X/2500Base-X port of the MaxLinear GSW1xx switches.

Also, validate hardware in probe() function to make sure the switch is actually present and MDIO communication works properly.
---
Changes since v2:
* be more clear about describing polarity at port, ie. external pin level

Changes since initial submission:
* use allOf to include phy-common-props in dt-schema
* use phy_get_manual_rx_polarity and phy_get_manual_tx_polarity helpers instead of open-coding them

Daniel Golle (3):
dt-bindings: net: dsa: lantiq,gswip: reference common PHY properties
net: dsa: mxl-gsw1xx: configure SerDes port polarities
net: dsa: mxl-gsw1xx: validate chip ID

 .../bindings/net/dsa/lantiq,gswip.yaml        |  4 ++
 drivers/net/dsa/lantiq/Kconfig                |  1 +
 drivers/net/dsa/lantiq/mxl-gsw1xx.c           | 66 +++++++++++++++----
 drivers/net/dsa/lantiq/mxl-gsw1xx.h           |  9 +++
 4 files changed, 68 insertions(+), 12 deletions(-)
Signature · 1 line
2.52.0