PCI: rockchip: Set Target Link Speed to 5.0 GT/s before retraining
authorGeraldo Nascimento <geraldogabriel@gmail.com>
Mon, 30 Jun 2025 22:24:57 +0000 (19:24 -0300)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 7 Jul 2025 22:19:57 +0000 (17:19 -0500)
commit114b06ee108cabc82b995fbac6672230a9776936
tree34e5beae5bfdc13603b0b776c70dbbc8a66248f1
parentcbbfe9f683f0f9b6a1da2eaa53b995a4b5961086
PCI: rockchip: Set Target Link Speed to 5.0 GT/s before retraining

Rockchip controllers can support up to 5.0 GT/s link speed. But the driver
doesn't set the Target Link Speed currently. This may cause failure in
retraining the link to 5.0 GT/s if supported by the endpoint. So set the
Target Link Speed to 5.0 GT/s in the Link Control and Status Register 2.

Fixes: e77f847df54c ("PCI: rockchip: Add Rockchip PCIe controller support")
Signed-off-by: Geraldo Nascimento <geraldogabriel@gmail.com>
[mani: fixed whitespace warning, commit message rewording, added fixes tag]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Robin Murphy <robin.murphy@arm.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/0afa6bc47b7f50e2e81b0b47d51c66feb0fb565f.1751322015.git.geraldogabriel@gmail.com
drivers/pci/controller/pcie-rockchip-host.c