linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Wood <oss@buserror.net>
To: Edward L Swarthout <ed.swarthout@nxp.com>,
	Zhiqiang Hou <zhiqiang.hou@nxp.com>,
	"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
	"mpe@ellerman.id.au" <mpe@ellerman.id.au>
Cc: "Mingkai.Hu@freescale.com" <Mingkai.Hu@freescale.com>
Subject: Re: [PATCH] powerpc/fsl-pci: Correct the comparison of the LTSSM
Date: Wed, 03 Feb 2016 17:03:18 -0600	[thread overview]
Message-ID: <1454540598.2486.22.camel@buserror.net> (raw)
In-Reply-To: <HE1PR04MB119473A0D817A832E40806D899D00@HE1PR04MB1194.eurprd04.prod.outlook.com>

On Wed, 2016-02-03 at 21:32 +0000, Edward L Swarthout wrote:
> From: Scott Wood:
> > On Mon, 2016-02-01 at 03:57 +0000, Zhiqiang Hou wrote:
> > > Any comments?
> > 
> > Only that it was submitted too late for the last merge window, and I have
> > not
> > yet begun processing patches for the next one.  If you meant this to be a
> > fix
> > important enough to go in outside the merge window, it's missing any
> > statement
> > of what the actual symptoms are.
> > 
> > > -----Original Message-----
> > > From: Zhiqiang Hou [mailto:Zhiqiang.Hou@freescale.com]
> > > To: linuxppc-dev@lists.ozlabs.org; benh@kernel.crashing.org;
> > > Subject: [PATCH] powerpc/fsl-pci: Correct the comparison of the LTSSM
> > > 
> > > Only the value PCIE_LTSSM_L0 stands for the link is up, instead of >=
> > > PCIE_LTSSM_L0.
> > > 
> > > diff --git 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
> > >                     early_read_config_dword(hose, 0, 0, PCIE_LTSSM,
> > > -           if (val < PCIE_LTSSM_L0)
> > > +           if (val != PCIE_LTSSM_L0)
> > >                     return 1;
> 
> This patch is incorrect as there are actually two states L0 and L0s
> (standby) 
> that indicate an active link (a LTSSM value of 0x11 or  0x12).
> 
> The next user manual revision should contain this detail.

The next manual of what chip?

Are there any non-active states for which the current test does not work?

-Scott

      reply	other threads:[~2016-02-03 23:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=1454540598.2486.22.camel@buserror.net \
    --to=oss@buserror.net \
    --cc=Mingkai.Hu@freescale.com \
    --cc=ed.swarthout@nxp.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    --cc=zhiqiang.hou@nxp.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).