[RFC PATCH 0/4] Quality Improvements for Rockchip-IP PCIe

From: Geraldo Nascimento
Date: Sat Jun 07 2025 - 07:00:47 EST


During a 30-day debugging-run fighting quirky PCIe devices on RK3399
some quality improvements began to take form and this is my attempt
at upstreaming it. It will ensure maximum chance of retraining to Gen2
5.0GT/s, on all four lanes and plus if anybody is debugging the PHY
they'll now get real values from TEST_I[3:0] for every TEST_ADDR[4:0]
without risk of locking up kernel like with present broken async
strobe TEST_WRITE.

Geraldo Nascimento (4):
PCI: pcie-rockchip: add bits for Target Link Speed in LCS_2
PCI: rockchip-host: Set Target Link Speed before retraining
phy: rockchip-pcie: enable all four lanes
phy: rockchip-pcie: adjust read mask and write strobe disable

drivers/pci/controller/pcie-rockchip-host.c | 4 ++++
drivers/pci/controller/pcie-rockchip.h | 3 +++
drivers/phy/rockchip/phy-rockchip-pcie.c | 16 +++++++++-------
3 files changed, 16 insertions(+), 7 deletions(-)

--
2.49.0