From: Liu Ying Date: Tue, 29 Jan 2013 10:13:31 +0000 (+0800) Subject: ENGR00242269 MX6 PCIE:Print out link up failure log X-Git-Tag: v3.0.35-fsl~131 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=59e4fdb65727485ede0990cc5543d5d154791e01;p=karo-tx-linux.git ENGR00242269 MX6 PCIE:Print out link up failure log This patch contains code change only to print out link up failure log like below. link up failed, DB_R0:0x001b8400, DB_R1:0x08200000! Before the change, the present print code can never be called even if the link up fails. Signed-off-by: Liu Ying --- diff --git a/arch/arm/mach-mx6/pcie.c b/arch/arm/mach-mx6/pcie.c index 69eaf16a8ccf..05d828b45ae5 100644 --- a/arch/arm/mach-mx6/pcie.c +++ b/arch/arm/mach-mx6/pcie.c @@ -300,7 +300,7 @@ static int imx_pcie_link_up(void __iomem *dbi_base) 0x0000); } - if ((iterations < 0)) + if (iterations == 0) pr_info("link up failed, DB_R0:0x%08x, DB_R1:0x%08x!\n" , readl(dbi_base + DB_R0) , readl(dbi_base + DB_R1));