Skip to content

net: dsa: b53: PCS fixes

Florian Fainelli lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/26 patches 6 repliesIn review
  2. v1 posting 1/24 of 6 patches 0 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: dsa: b53: serialize SerDes register transactionsdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_serdes.c+115 -340 replies
2/6net: dsa: b53: manage SerDes power through the PCS callbacksdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_priv.h drivers/net/dsa/b53/b53_serdes.c +2 more+51 -331 reply
3/6net: dsa: b53: constrain SerDes interfaces to initialized PCSesdrivers/net/dsa/b53/b53_serdes.c drivers/net/dsa/b53/b53_srab.c+15 -221 reply
4/6net: dsa: b53: configure PCS negotiation and forced link parametersdrivers/net/dsa/b53/b53_serdes.c drivers/net/dsa/b53/b53_serdes.h+151 -421 reply
5/6net: dsa: b53: report link state through the PCSdrivers/net/dsa/b53/b53_common.c drivers/net/dsa/b53/b53_priv.h drivers/net/dsa/b53/b53_serdes.c +2 more+40 -521 reply
6/6net: dsa: b53: apply resolved link settings to serial port MACsdrivers/net/dsa/b53/b53_common.c+23 -271 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net 0/6 RESEND] net: dsa: b53: PCS fixes

This patch series fixes a number of issues found with a LLM and while testing on a Broadcom Northstar Plus reference board (BCM958625HR) using a SFP connected to a fiber converter:

- there was no serialization of the registers across multiple lanes
- the SerDes powering down was incorrectly managed and should have used .pcs_{enable,disable}
- the interfaces advertisement should have been confined to successfully initialized PCSes
- the negotation and forced link parameters were incorrectly supported and should have used pcs_link_up and pcs_inband_caps
- link state should have been reported through the PCS

With these patches disconnecting the fiber cables triggers a link down, as does disconnecting the fiber converter from its cable or powering it down, ip link up/down also work properly as a result as well.

Florian Fainelli (6):
net: dsa: b53: serialize SerDes register transactions
net: dsa: b53: manage SerDes power through the PCS callbacks
net: dsa: b53: constrain SerDes interfaces to initialized PCSes
net: dsa: b53: configure PCS negotiation and forced link parameters
net: dsa: b53: report link state through the PCS
net: dsa: b53: apply resolved link settings to serial port MACs

 drivers/net/dsa/b53/b53_common.c |  69 ++----
 drivers/net/dsa/b53/b53_priv.h   |   4 -
 drivers/net/dsa/b53/b53_serdes.c | 407 +++++++++++++++++++++++--------
 drivers/net/dsa/b53/b53_serdes.h |  13 +-
 drivers/net/dsa/b53/b53_srab.c   |  12 +-
 5 files changed, 345 insertions(+), 160 deletions(-)
Signature · 1 line
2.53.0