PCI: keystone: Fix link training retries initiation
authorYurii Monakov <monakov.y@gmail.com>
Tue, 17 Dec 2019 11:38:36 +0000 (14:38 +0300)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 10 Jan 2020 17:23:22 +0000 (17:23 +0000)
commit6df19872d881641e6394f93ef2938cffcbdae5bb
treea3aee69465575f98d381a8600abe68c05acc24f2
parente42617b825f8073569da76dc4510bfa019b1c35a
PCI: keystone: Fix link training retries initiation

ks_pcie_stop_link() function does not clear LTSSM_EN_VAL bit so
link training was not triggered more than once after startup.
In configurations where link can be unstable during early boot,
for example, under low temperature, it will never be established.

Fixes: 0c4ffcfe1fbc ("PCI: keystone: Add TI Keystone PCIe driver")
Signed-off-by: Yurii Monakov <monakov.y@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Andrew Murray <andrew.murray@arm.com>
Cc: stable@vger.kernel.org
drivers/pci/controller/dwc/pci-keystone.c