linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/fsl-pci: Correct the comparison of the LTSSM
@ 2016-01-04  7:45 Zhiqiang Hou
  2016-02-01  3:57 ` Zhiqiang Hou
  0 siblings, 1 reply; 5+ messages in thread
From: Zhiqiang Hou @ 2016-01-04  7:45 UTC (permalink / raw)
  To: linuxppc-dev, benh, paulus, mpe
  Cc: scottwood, akpm, robh, Mingkai.Hu, Hou Zhiqiang

From: Hou Zhiqiang <Zhiqiang.Hou@freescale.com>

Only the value PCIE_LTSSM_L0 stands for the link is up, instead
of >= PCIE_LTSSM_L0.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-03 23:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-04  7:45 [PATCH] powerpc/fsl-pci: Correct the comparison of the LTSSM Zhiqiang Hou
2016-02-01  3:57 ` Zhiqiang Hou
2016-02-01  4:07   ` Scott Wood
2016-02-03 21:32     ` Edward L Swarthout
2016-02-03 23:03       ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).