From 59e4fdb65727485ede0990cc5543d5d154791e01 Mon Sep 17 00:00:00 2001 From: Liu Ying Date: Tue, 29 Jan 2013 18:13:31 +0800 Subject: [PATCH] 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 --- arch/arm/mach-mx6/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.5