From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0118.outbound.protection.outlook.com [207.46.100.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id E9ED81A1142 for ; Mon, 4 Jan 2016 20:26:00 +1100 (AEDT) From: Zhiqiang Hou To: , , , CC: , , , , Hou Zhiqiang Subject: [PATCH] powerpc/fsl-pci: Correct the comparison of the LTSSM Date: Mon, 4 Jan 2016 15:45:17 +0800 Message-ID: <1451893517-20934-1-git-send-email-Zhiqiang.Hou@freescale.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Hou Zhiqiang Only the value PCIE_LTSSM_L0 stands for the link is up, instead of >= PCIE_LTSSM_L0. Signed-off-by: Hou Zhiqiang --- arch/powerpc/sysdev/fsl_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 610f472..1595f55 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c @@ -73,7 +73,7 @@ static int fsl_pcie_check_link(struct pci_controller *hose) PCIE_LTSSM, 4, &val); else early_read_config_dword(hose, 0, 0, PCIE_LTSSM, &val); - if (val < PCIE_LTSSM_L0) + if (val != PCIE_LTSSM_L0) return 1; } else { struct ccsr_pci __iomem *pci = hose->private_data; -- 2.1.0.27.g96db324