linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh+dt@kernel.org>
To: Mason <slash.tmp@free.fr>
Cc: Robin Murphy <robin.murphy@arm.com>,
	Frank Rowand <frowand.list@gmail.com>,
	Marc Zyngier <marc.zyngier@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Bjorn Helgaas <helgaas@kernel.org>,
	linux-pci <linux-pci@vger.kernel.org>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>,
	Thibaud Cornic <thibaud_cornic@sigmadesigns.com>,
	Marc Gonzalez <Marc_Gonzalez@sigmadesigns.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Phil Edworthy <phil.edworthy@renesas.com>,
	Ray Jui <ray.jui@broadcom.com>,
	Andrew Murray <amurray@embedded-bits.co.uk>,
	Liviu Dudau <liviu.dudau@arm.com>,
	Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Subject: Re: [PATCH v10] PCI: tango: Add MSI controller support
Date: Mon, 18 Sep 2017 16:30:16 -0500	[thread overview]
Message-ID: <CAL_JsqK7XayjJcCYhicuqGqKN8N6+P=9tDrs_m7K3YiOBHDAHA@mail.gmail.com> (raw)
In-Reply-To: <26b17bd9-232f-b992-68ac-3b5a7752ba54@free.fr>

On Mon, Aug 28, 2017 at 11:13 AM, Mason <slash.tmp@free.fr> wrote:
> On 25/08/2017 17:25, Robin Murphy wrote:
>
>> If your host controller driver needs to discover its windows from DT to
>> configure *itself*, it needs to parse dma-ranges itself; see pcie-iproc,
>> pcie-rcar, pcie-xgene, etc. for examples.
>
> $ git grep '"dma-ranges"' drivers/pci/host
> drivers/pci/host/pci-ftpci100.c:        parser->range = of_get_property(node, "dma-ranges", &rlen);
> drivers/pci/host/pci-rcar-gen2.c:       parser->range = of_get_property(node, "dma-ranges", &rlen);
> drivers/pci/host/pci-xgene.c:   parser->range = of_get_property(node, "dma-ranges", &rlen);
> drivers/pci/host/pcie-iproc.c:  parser->range = of_get_property(node, "dma-ranges", &rlen);
> drivers/pci/host/pcie-rcar.c:   parser->range = of_get_property(node, "dma-ranges", &rlen);
>
> These 5 drivers are using the same function: pci_dma_range_parser_init
>
> pci-ftpci100.c:         d3c68e0a7e34a (Linus Walleij     2017-03-12
> pci-rcar-gen2.c:        8d598cabf50d8 (Phil Edworthy     2015-11-03
> pci-xgene.c:            5f6b6ccdbe1cd (Tanmay Inamdar    2014-10-01
> pcie-iproc.c:           dd9d4e7498de3 (Ray Jui           2016-10-31
> pcie-rcar.c:            c25da4778803b (Phil Edworthy     2014-05-12
>
> which seems to be a copy of of_pci_range_parser_init
> with "ranges" changed to "dma-ranges"
>
> drivers/of/address.c    29b635c00f3eb (Andrew Murray     2013-05-16
>
> Perhaps pci_dma_range_parser_init() can be factorized?
>
> Rob, Frank, what do you think of the patch below?

I thought I had commented (maybe that was on IRC), but looks fine.

This series should also fix a build failure on rcar with !OF, so can
you send a proper patch?

Rob

  reply	other threads:[~2017-09-18 21:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-22 14:56 [PATCH v10] PCI: tango: Add MSI controller support Marc Gonzalez
2017-08-22 16:29 ` Marc Zyngier
2017-08-22 18:02   ` Marc Gonzalez
2017-08-22 20:03     ` Marc Zyngier
2017-08-24 17:04       ` Bjorn Helgaas
2017-08-24 17:51         ` Marc Gonzalez
2017-08-24 18:35           ` Ard Biesheuvel
2017-08-24 20:53             ` Mason
2017-08-25  7:54               ` Marc Zyngier
2017-08-25  8:56                 ` Mason
2017-08-25 15:01                 ` Mason
2017-08-25 15:25                   ` Robin Murphy
2017-08-25 15:35                     ` Mason
2017-08-25 15:45                       ` Robin Murphy
2017-08-25 16:44                         ` Mason
2017-08-26 13:08                           ` Marc Zyngier
2017-08-26 18:12                             ` Mason
2017-08-28 16:13                     ` Mason
2017-09-18 21:30                       ` Rob Herring [this message]
2017-09-19 10:41                         ` Mason
2017-08-23 12:59 ` Marc Gonzalez
2017-08-24 17:01   ` Bjorn Helgaas

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='CAL_JsqK7XayjJcCYhicuqGqKN8N6+P=9tDrs_m7K3YiOBHDAHA@mail.gmail.com' \
    --to=robh+dt@kernel.org \
    --cc=Marc_Gonzalez@sigmadesigns.com \
    --cc=amurray@embedded-bits.co.uk \
    --cc=ard.biesheuvel@linaro.org \
    --cc=frowand.list@gmail.com \
    --cc=helgaas@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=liviu.dudau@arm.com \
    --cc=marc.zyngier@arm.com \
    --cc=mark.rutland@arm.com \
    --cc=phil.edworthy@renesas.com \
    --cc=ray.jui@broadcom.com \
    --cc=robin.murphy@arm.com \
    --cc=slash.tmp@free.fr \
    --cc=thibaud_cornic@sigmadesigns.com \
    --cc=thomas.petazzoni@free-electrons.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).