public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Liviu Dudau <Liviu.Dudau@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
	Lucas Stach <l.stach@pengutronix.de>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <Pawel.Moll@arm.com>,
	Mark Rutland <Mark.Rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: [PATCH] PCI: add missing DT binding for linux,pci-domain property
Date: Thu, 06 Nov 2014 12:42:41 +0100	[thread overview]
Message-ID: <3491668.yjzKoIEZd4@wuerfel> (raw)
In-Reply-To: <20141106100518.GI8916@e106497-lin.cambridge.arm.com>

On Thursday 06 November 2014 10:05:18 Liviu Dudau wrote:
> On Wed, Nov 05, 2014 at 11:17:43PM +0000, Bjorn Helgaas wrote:
> > On Tue, Nov 04, 2014 at 12:47:40PM +0100, Lucas Stach wrote:
> > > This property was added by 41e5c0f81d3e
> > > (of/pci: Add pci_get_new_domain_nr() and of_get_pci_domain_nr())
> > > without the required binding documentation. As this property
> > > will be supported by a number of host bridge drivers going forward,
> > > add it to the common PCI binding doc.
> > > 
> > > Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> > 
> > I merged 41e5c0f81d3e through my tree, and I could merge something like
> > this if a consensus develops with some acks.  But I'll just let you guys
> > handle it unless you poke me again.
> 
> While I think the "linux,pci-domain" property *must* be documented, I
> would like to get a consensus first on the usage. If we agree that
> the property is mandatory to all host bridge drivers that use OF then
> we need to patch existing drivers (partially done through Lorenzo's
> patches, but other arches are ignoring it). If we say all *new* drivers
> need to use it then we also need to come up with a strategy on how to
> deal with old vs new school drivers.
> 
> My preferred approach is the 3rd way: "linux,pci-domain" becomes part of
> the core PCI infrastructure (and we find the common ground with ACPI).
> That way the host bridge drivers don't have to do anything, but the DT
> creators have to specify a value.
> 
> Pinging Rob to try to get a peek on this thoughts.

Parsing "linux,pci-domain" from the PCI core code seems like the best
solution to me, but we still have to support dtbs that don't contain
it. Lorenzo's patch gets this right I think.

ACPI is easy here, because it already requires the domain to be
explicit.

	Arnd

  reply	other threads:[~2014-11-06 11:42 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 11:47 [PATCH] PCI: add missing DT binding for linux,pci-domain property Lucas Stach
2014-11-04 12:00 ` Liviu Dudau
2014-11-04 12:07   ` Arnd Bergmann
2014-11-04 12:20     ` Lucas Stach
2014-11-06 15:08     ` Lucas Stach
2014-11-06 19:55       ` Arnd Bergmann
2014-11-04 17:05 ` Kumar Gala
2014-11-05 23:17 ` Bjorn Helgaas
2014-11-06 10:05   ` Liviu Dudau
2014-11-06 11:42     ` Arnd Bergmann [this message]
2014-11-06 12:36       ` Liviu Dudau
2014-11-06 13:29         ` Arnd Bergmann
2014-11-06 14:57     ` Rob Herring
2014-11-06 15:30       ` Liviu Dudau
2014-11-06 19:46         ` Rob Herring
2014-11-07 10:17           ` Liviu Dudau
2014-11-07 14:00             ` Rob Herring
2014-11-07 15:23               ` Liviu Dudau
2014-11-07 15:37                 ` Rob Herring

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=3491668.yjzKoIEZd4@wuerfel \
    --to=arnd@arndb.de \
    --cc=Liviu.Dudau@arm.com \
    --cc=Mark.Rutland@arm.com \
    --cc=Pawel.Moll@arm.com \
    --cc=bhelgaas@google.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=l.stach@pengutronix.de \
    --cc=linux-pci@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /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