net: dsa: b53: PCS fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v1 Latest posting 2/26 patches 6 repliesIn review
- v1 posting 1/24 of 6 patches 0 repliesSuperseded
Patches in v1 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | net: dsa: b53: serialize SerDes register transactionsdrivers/ drivers/ | +115 | 0 replies | |
| 2/6 | net: dsa: b53: manage SerDes power through the PCS callbacksdrivers/ drivers/ drivers/ +2 more | +51 | 1 reply | |
| 3/6 | net: dsa: b53: constrain SerDes interfaces to initialized PCSesdrivers/ drivers/ | +15 | 1 reply | |
| 4/6 | net: dsa: b53: configure PCS negotiation and forced link parametersdrivers/ drivers/ | +151 | 1 reply | |
| 5/6 | net: dsa: b53: report link state through the PCSdrivers/ drivers/ drivers/ +2 more | +40 | 1 reply | |
| 6/6 | net: dsa: b53: apply resolved link settings to serial port MACsdrivers/ | +23 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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