From: Stefano Babic Date: Thu, 12 Oct 2017 18:24:28 +0200 Subject: [U-Boot] [PATCH] drivers: pci: imx: fix imx_pcie_remove function In-Reply-To: <1507204002-14559-1-git-send-email-fabio.estevam@nxp.com> References: <1507204002-14559-1-git-send-email-fabio.estevam@nxp.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/10/2017 13:46, Fabio Estevam wrote: > From: Sven-Ola Tuecke > > 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 6ecbe1375671 ("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 > Signed-off-by: Fabio Estevam > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================