Skip to content

PCI: rockchip: Improve driver quality

Geraldo Nascimento linux-arm-kernel linux-pci linux-phy linux-rockchip lkml 11 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest posting 2/24 patches 7 repliesApplied
  2. v9 posting 1/24 patches 0 repliesSuperseded
  3. v84 patches 3 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v74 patches5 repliesSuperseded
v6 RFC4 patches2 repliesSuperseded
v5 RFC4 patches11 repliesSuperseded
v4 RFC posting 2/25 patches10 repliesSuperseded
v4 RFC posting 1/25 patches3 repliesSuperseded
v3 RFC5 patches1 replySuperseded
v2 RFC4 patches4 repliesSuperseded
v1 RFC4 patches6 repliesSuperseded

Patches in v9 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/4PCI: rockchip: Use standard PCIe definesdrivers/pci/controller/pcie-rockchip-ep.c drivers/pci/controller/pcie-rockchip-host.c drivers/pci/controller/pcie-rockchip.h+25 -355 replies
2/4PCI: rockchip: Set Target Link Speed before retrainingdrivers/pci/controller/pcie-rockchip-host.c+4 -00 replies
3/4phy: rockchip-pcie: Enable all four lanes if requireddrivers/phy/rockchip/phy-rockchip-pcie.c+6 -60 replies
4/4phy: rockchip-pcie: Properly disable TEST_WRITE strobe signaldrivers/phy/rockchip/phy-rockchip-pcie.c+1 -20 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchRobin MurphyNeil Armstrong
1/4
2/4T-b
3/4R-b R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [RESEND PATCH v9 0/4] PCI: rockchip: Improve driver quality

During a 30-day debugging-run fighting quirky PCIe devices on RK3399 some quality improvements began to take form and after feedback from community they reached more polished state.

This will ensure maximum chance of retraining to 5.0GT/s, on all four lanes and fix async strobe TEST_WRITE disablement. On top of this, standard PCIe defines are now used to reference registers from offset at Capabilities Register.

Unfortunately, it seems Rockchip-IP PCIe is unable to handle 16-bit register writes and there's risk of corrupting state of RW1C registers, an issue raised by Bjorn Helgaas. There's little I could do to fix that, so on this issue the situation remains the same.

---
V8 -> V9: modify third patch to better reflect authorship by Valmantas V7 -> V8: add Valmantas Paliksa Signed-off-by to third patch V6 -> V7: drop RFC tag as per Heiko Stuebner's reminder, update cover letter
V5 -> V6: reflow to 75 cols, use 5.0GTs instead of Gen2 nomenclature, clarify strobe write adjustment and remove PHY_CFG_RD_MASK V4 -> V5: fix build failure, reflow commit messages and also convert registers for EP operation, all suggested by Ilpo
V3 -> V4: fix setting-up of TLS in Link Control and Status Register 2, also adjust commit titles
V2 -> V3: correctly clean-up with standard PCIe defines as per Bjorn's suggestion
V1 -> V2: use standard PCIe defines as suggested by Bjorn

Geraldo Nascimento (3):
PCI: rockchip: Use standard PCIe defines
PCI: rockchip: Set Target Link Speed before retraining
phy: rockchip-pcie: Properly disable TEST_WRITE strobe signal

Valmantas Paliksa (1):
phy: rockchip-pcie: Enable all four lanes if required

 drivers/pci/controller/pcie-rockchip-ep.c   |  4 +-
 drivers/pci/controller/pcie-rockchip-host.c | 48 +++++++++++----------
 drivers/pci/controller/pcie-rockchip.h      | 12 +-----
 drivers/phy/rockchip/phy-rockchip-pcie.c    | 15 +++----
 4 files changed, 36 insertions(+), 43 deletions(-)
Signature · 1 line
2.49.0