]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Tue, 11 Feb 2020 12:35:19 +0000 (04:35 -0800)
commita8b56e222300a9214f77766274dccff2edcfcc00
tree79867af07a5e3fb148b8c7f69efa151d47af432e
parent6700c0d9ae92bae13b9f79670f0195f35a602b5d
PCI: keystone: Fix link training retries initiation

commit 6df19872d881641e6394f93ef2938cffcbdae5bb upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/controller/dwc/pci-keystone.c