summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLiu Ying <Ying.Liu@freescale.com>2013-01-29 18:13:31 +0800
committerLiu Ying <Ying.Liu@freescale.com>2013-01-30 09:29:03 +0800
commit7055ad7f4831ee99d5907bdba5e6757364c66c3d (patch)
tree4170bbef75f7f44accd5469ce817d0a4cb0b8f34 /arch
parent698d46e6a807a93eabf18bf79efd92a78cb1a106 (diff)
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 <Ying.Liu@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/pcie.c2
1 files changed, 1 insertions, 1 deletions
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));