From: Scott Wood <scottwood@freescale.com>
To: Aaron Sierra <asierra@xes-inc.com>
Cc: Minghuan Lian <minghuan.lian@freescale.com>,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH v2] powerpc: fsl_pci: Add forced PCI Agent enumeration
Date: Tue, 26 Aug 2014 15:52:56 -0500 [thread overview]
Message-ID: <1409086376.6510.82.camel@snotra.buserror.net> (raw)
In-Reply-To: <2036664217.106423.1409010857961.JavaMail.zimbra@xes-inc.com>
On Mon, 2014-08-25 at 18:54 -0500, Aaron Sierra wrote:
> The following commit prevents the MPC8548E on the XPedite5200 PrPMC
> module from enumerating its PCI/PCI-X bus:
>
> powerpc/fsl-pci: use 'Header Type' to identify PCIE mode
>
> The previous patch prevents any Freescale PCI-X bridge from enumerating
> the bus, if it is hardware strapped into Agent mode.
>
> In PCI-X, the Host is responsible for driving the PCI-X initialization
> pattern to devices on the bus, so that they know whether to operate in
> conventional PCI or PCI-X mode as well as what the bus timing will be.
> For a PCI-X PrPMC, the pattern is driven by the mezzanine carrier it is
> installed onto. Therefore, PrPMCs are PCI-X Agents, but one per system
> may still enumerate the bus.
>
> This patch causes the device node of any PCI/PCI-X bridge strapped into
> Agent mode to be checked for the fsl,pci-agent-force-enum property. If
> the property is present in the node, the bridge will be allowed to
> enumerate the bus.
>
> Cc: Minghuan Lian <Minghuan.Lian@freescale.com>
> Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
> ---
> .../bindings/pci/fsl,pci-agent-force-enum.txt | 27 ++++++++++++++++++++++
> arch/powerpc/sysdev/fsl_pci.c | 3 ++-
> 2 files changed, 29 insertions(+), 1 deletion(-)
> create mode 100644 Documentation/devicetree/bindings/pci/fsl,pci-agent-force-enum.txt
>
> diff --git a/Documentation/devicetree/bindings/pci/fsl,pci-agent-force-enum.txt b/Documentation/devicetree/bindings/pci/fsl,pci-agent-force-enum.txt
> new file mode 100644
> index 0000000..d8ac4a7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pci/fsl,pci-agent-force-enum.txt
This ought to be part of a general fsl,pci binding, rather than its own
file. Unfortunately there isn't such a binding yet, but let's call this
something like "fsl,pci.txt" anyway so that there's a place to add the
rest of the binding to.
Also, CC devicetree@vger.kernel.org on all device tree patches.
Otherwise it looks OK.
-Scott
next prev parent reply other threads:[~2014-08-26 20:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1335786600.106191.1409010734055.JavaMail.zimbra@xes-inc.com>
2014-08-25 23:54 ` [PATCH v2] powerpc: fsl_pci: Add forced PCI Agent enumeration Aaron Sierra
2014-08-26 20:52 ` Scott Wood [this message]
2014-08-26 21:12 ` Aaron Sierra
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=1409086376.6510.82.camel@snotra.buserror.net \
--to=scottwood@freescale.com \
--cc=asierra@xes-inc.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=minghuan.lian@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