PCI: keystone: Fix link training retries initiation
authorYurii Monakov <monakov.y@gmail.com>
Tue, 17 Dec 2019 11:38:36 +0000 (14:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:31:00 +0000 (16:31 -0500)
commit1eeb10c067dd2f67da642b50e44bec252fd28638
treeaaee50c1d62c7d3397049aa7c90f429db53bf45f
parent0e2837c38fb39c1305e6d9ffd1cb8058655a5ee2
PCI: keystone: Fix link training retries initiation

[ Upstream commit 6df19872d881641e6394f93ef2938cffcbdae5bb ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/host/pci-keystone-dw.c