From: Zhiqiang Hou <Zhiqiang.Hou@freescale.com>
To: <linuxppc-dev@lists.ozlabs.org>, <benh@kernel.crashing.org>,
<paulus@samba.org>, <mpe@ellerman.id.au>
Cc: <scottwood@freescale.com>, <akpm@linux-foundation.org>,
<robh@kernel.org>, <Mingkai.Hu@freescale.com>,
Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
Subject: [PATCH] powerpc/fsl-pci: Correct the comparison of the LTSSM
Date: Mon, 4 Jan 2016 15:45:17 +0800 [thread overview]
Message-ID: <1451893517-20934-1-git-send-email-Zhiqiang.Hou@freescale.com> (raw)
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
next reply other threads:[~2016-01-04 9:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-04 7:45 Zhiqiang Hou [this message]
2016-02-01 3:57 ` [PATCH] powerpc/fsl-pci: Correct the comparison of the LTSSM Zhiqiang Hou
2016-02-01 4:07 ` Scott Wood
2016-02-03 21:32 ` Edward L Swarthout
2016-02-03 23:03 ` Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1451893517-20934-1-git-send-email-Zhiqiang.Hou@freescale.com \
--to=zhiqiang.hou@freescale.com \
--cc=Mingkai.Hu@freescale.com \
--cc=akpm@linux-foundation.org \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
--cc=robh@kernel.org \
--cc=scottwood@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).