]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00242269 MX6 PCIE:Print out link up failure log
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 29 Jan 2013 10:13:31 +0000 (18:13 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:53 +0000 (08:35 +0200)
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>
arch/arm/mach-mx6/pcie.c

index 69eaf16a8ccf745cb18932bb3e94cefc724a3dfe..05d828b45ae59cc57f15d89438cd148496d935d6 100644 (file)
@@ -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));