]> git.baikalelectronics.ru Git - uboot.git/commit
drivers: pci: imx: fix imx_pcie_remove function
authorSven-Ola Tuecke <sven-ola.tuecke@numberfour.eu>
Thu, 5 Oct 2017 11:46:42 +0000 (08:46 -0300)
committerStefano Babic <sbabic@denx.de>
Thu, 12 Oct 2017 15:56:28 +0000 (17:56 +0200)
commit2d8108b7d2cea08bcf6afc50f1d4a81bea3940c3
tree62ff9ae3a765ac1673bcad4b6692e46d872390b8
parent572950cf4a28e60238c9ec32a4eaf0bff4ef2a75
drivers: pci: imx: fix imx_pcie_remove function

We have at least a minor count of boards, that failed to re-initialize
PCI express in the Linux kernel. Typical failure rate is 20% on affected
boards. This is mitigated by commit 259436b6e8b2 ("drivers: pci: imx:
add imx_pcie_remove function").

However, at least on some i.MX6 custom boards, when calling
assert_core_reset() as part of the first-time PCIe init, read access
to PCIE_PL_PFLR simply hangs. Surround this readl() with
imx_pcie_fix_dabt_handler() does not help. For this reason, the forced
LTSSM detection is only used on the second assert_core_reset() that is
called shorly before starting the Linux kernel.

Signed-off-by: Sven-Ola Tuecke <sven-ola.tuecke@numberfour.eu>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: David Müller <d.mueller@elsoft.ch>
drivers/pci/pcie_imx.c