Skip to content
Snippets Groups Projects
Commit b2915ba2 authored by Sven-Ola Tuecke's avatar Sven-Ola Tuecke Committed by Stefano Babic
Browse files

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 6ecbe137 ("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: default avatarSven-Ola Tuecke <sven-ola.tuecke@numberfour.eu>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Tested-by: default avatarDavid Müller <d.mueller@elsoft.ch>
parent 066d97c7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment