From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>,
Bjorn Helgaas <bhelgaas@google.com>,
linux-pci@vger.kernel.org, Peter W Newton <peter.newton@nxp.com>,
Mingkai Hu <mingkai.hu@nxp.com>,
"M.h. Lian" <minghuan.lian@nxp.com>,
Raj Raina <rajesh.raina@nxp.com>,
Rajan Kapoor <rajan.kapoor@nxp.com>,
Prabhjot Singh <prabhjot.singh@nxp.com>,
Tanmay Inamdar <tinamdar@apm.com>
Subject: Re: [PATCH 1/1 v2 ] PCI: Mobiveil: Add Mobiveil PCIe Host Bridge IP driver
Date: Tue, 21 Nov 2017 14:56:46 +0000 [thread overview]
Message-ID: <20171121145646.GA14465@red-moon> (raw)
In-Reply-To: <20171121144024.GF16362@bhelgaas-glaptop.roam.corp.google.com>
On Tue, Nov 21, 2017 at 08:40:24AM -0600, Bjorn Helgaas wrote:
> [+cc Lorenzo, Tanmay]
>
> On Tue, Nov 21, 2017 at 05:45:16PM +0530, Subrahmanya Lingappa wrote:
> > On Fri, Nov 10, 2017 at 5:13 AM, Bjorn Helgaas <helgaas@kernel.org> wrote:
> > > On Thu, Nov 09, 2017 at 05:33:03PM +0530, subrahmanya_lingappa wrote:
>
> > >> + /* create the PCIe root bus */
> > >> + bus =
> > >> + pci_create_root_bus(&pdev->dev, 0, &mobiveil_pcie_ops, pcie, &res);
> > >> + if (!bus)
> > >> + return -ENOMEM;
> > >> +
> > >> + /* setup MSI, if enabled */
> > >> + if (IS_ENABLED(CONFIG_PCI_MSI)) {
> > >> + mobiveil_pcie_msi_chip.dev = &pcie->pdev->dev;
> > >> + bus->msi = &mobiveil_pcie_msi_chip;
> > >> + }
> > >> +
> > >> + /* setup the kernel resources for the newly added PCIe root bus */
> > >> + pci_scan_child_bus(bus);
> > >
> > > Use pci_scan_root_bus_bridge(). For example, see
> > > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=123db533072e
> > >
> > >> + pci_assign_unassigned_bus_resources(bus);
> > >> +
> > >> + list_for_each_entry(child, &bus->children, node)
> > >> + pcie_bus_configure_settings(child);
> > >> +
> > >> + pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci);
> > >
> > > pci_scan_root_bus_bridge() also takes care of this pci_fixup_irqs()
> > > (which doesn't exist anymore); see
> > > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6ab380957838
> > >
> > I am testing this driver on a board whcih supports Xilinx's latest
> > Petalinux build environment has Linux-4.9 kernel version with all
> > the patches from Xilinx included in it. But these
> > pci_scan_root_bus_bridge() and friends we added in recent versions
> > will it be ok keeping pci_scan_child_bus() for now ?
>
> I would strongly prefer to use pci_scan_root_bus_bridge(). As I
> mentioned, pci_fixup_irqs() doesn't even exist upstream anymore, so
> this can't be merged as-is.
>
> BTW, Lorenzo, it looks like 9af275be15f7 ("PCI: xgene: Convert PCI
> scan API to pci_scan_root_bus_bridge()") forgot to remove the
> pci_scan_child_bus() call from xgene_pcie_probe().
I will remove it straight away - apologies.
Thanks,
Lorenzo
prev parent reply other threads:[~2017-11-21 14:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 10:25 [PATCH 1/1] PCI: Mobiveil: Add Mobiveil PCIe Host Bridge IP driver Subrahmanya Lingappa
2017-11-09 12:03 ` [PATCH 1/1 v2 ] " subrahmanya_lingappa
2017-11-09 23:43 ` Bjorn Helgaas
2017-11-13 11:13 ` Subrahmanya Lingappa
2017-11-21 12:15 ` Subrahmanya Lingappa
2017-11-21 14:40 ` Bjorn Helgaas
2017-11-21 14:56 ` Lorenzo Pieralisi [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=20171121145646.GA14465@red-moon \
--to=lorenzo.pieralisi@arm.com \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=l.subrahmanya@mobiveil.co.in \
--cc=linux-pci@vger.kernel.org \
--cc=minghuan.lian@nxp.com \
--cc=mingkai.hu@nxp.com \
--cc=peter.newton@nxp.com \
--cc=prabhjot.singh@nxp.com \
--cc=rajan.kapoor@nxp.com \
--cc=rajesh.raina@nxp.com \
--cc=tinamdar@apm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.