net: mtk_eth: an8855: fix packet loss and sync with Linux
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 0 repliesNew
- v13 patches 8 repliesSuperseded
Changes in v2 from the cover letter
- Clarified in the cover letter that the referenced Linux driver is currently proposed/pending, and added a link to the patch series on lore.
- Added Fixes: tag to all three patches in the series.
- (Patch 3) Moved analog tuning parameters to the beginning of the init sequence, removed a redundant bitwise operation, and added a comment clarifying the 2500BASE-X values based on v1 review feedback.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net: mtk_eth: an8855: fix bit collision in RX_CTRL_8 registerdrivers/ | +2 | 0 replies | |
| 2/3 | net: mtk_eth: an8855: sync link error recovery config with Linuxdrivers/ | +2 | 0 replies | |
| 3/3 | net: mtk_eth: an8855: sync SerDes tuning with Linuxdrivers/ | +24 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] net: mtk_eth: an8855: fix packet loss and sync with Linux
his patch series aligns the U-Boot Airoha AN8855 switch initialization code with the proposed Linux DSA driver [1], fixing several register configuration bugs and improving overall signal integrity.
[1] https://lore.kernel.org/all/[email protected]/
The current default U-Boot configuration leaves the SerDes with marginal drive characteristics. On some hardware iterations, this results in severe packet loss (50-60%) and timeouts during TFTP recovery. This drop occurs because of marginal signal integrity on the internal 2500Base-X link connecting the switch to the CPU.
By correcting a bitwise shift overlap, enabling link error recovery, and applying the proper TX FIR / RX CDR analog tuning parameters used in the proposed Linux driver, this series ensures a stable physical link between the CPU and switch across different boards.
These changes have been run-tested on the CMCC RAX3000ME and Xiaomi AX3000T, both featuring the AN8855 switch, confirming stable network operation and reliable gigabit TFTP recovery.
Changes in v2:
- Clarified in the cover letter that the referenced Linux driver is currently proposed/pending, and added a link to the patch series on lore.
- Added Fixes: tag to all three patches in the series.
- (Patch 3) Moved analog tuning parameters to the beginning of the init sequence, removed a redundant bitwise operation, and added a comment clarifying the 2500BASE-X values based on v1 review feedback.
Mikhail Zhilkin (3):
net: mtk_eth: an8855: fix bit collision in RX_CTRL_8 register
net: mtk_eth: an8855: sync link error recovery config with Linux
net: mtk_eth: an8855: sync SerDes tuning with Linux
drivers/net/mtk_eth/an8855.c | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-)
Signature · 1 line
2.53.0