[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150616095507.GB24710@red-moon>
Date: Tue, 16 Jun 2015 10:55:07 +0100
From: Lorenzo Pieralisi <lorenzo.pieralisi@....com>
To: Suravee Suthikulanit <suravee.suthikulpanit@....com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
Ralf Baechle <ralf@...ux-mips.org>,
"James E.J. Bottomley" <jejb@...isc-linux.org>,
Michael Ellerman <mpe@...erman.id.au>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Richard Henderson <rth@...ddle.net>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
David Howells <dhowells@...hat.com>,
Russell King <linux@....linux.org.uk>,
Tony Luck <tony.luck@...el.com>,
"David S. Miller" <davem@...emloft.net>,
Ingo Molnar <mingo@...hat.com>,
Guenter Roeck <linux@...ck-us.net>,
Michal Simek <monstr@...str.eu>,
Chris Zankel <chris@...kel.net>, Arnd Bergmann <arnd@...db.de>,
Krzysztof Halasa <khalasa@...p.pl>,
Phil Edworthy <phil.edworthy@...esas.com>,
Jason Gunthorpe <jgunthorpe@...idianresearch.com>,
Jingoo Han <jg1.han@...sung.com>,
Lucas Stach <l.stach@...gutronix.de>,
Simon Horman <horms@...ge.net.au>,
Minghuan Lian <minghuan.Lian@...escale.com>,
Murali Karicheri <m-karicheri2@...com>,
Tanmay Inamdar <tinamdar@....com>,
Kishon Vijay Abraham I <kishon@...com>,
Thierry Reding <thierry.reding@...il.com>,
Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>,
Will Deacon <Will.Deacon@....com>,
Jayachandran C <jchandra@...adcom.com>
Subject: Re: [RFC/RFT PATCH v2] PCI: move pci_read_bridge_bases to the
generic PCI layer
On Thu, Jun 11, 2015 at 08:53:46PM +0100, Suravee Suthikulanit wrote:
> For ARM64 PROBE_ONLY and non-PROBE_ONLY modes:
>
> Reviewed and Tested-by: Suravee Suthikulpanit
> <Suravee.Suthikulpanit@....com>
Thank you !
> Please see minor comments below.
[...]
> > +static void pci_claim_bridge_resources(struct pci_bus *bus)
> > +{
> > + struct pci_dev *dev = bus->self;
> > + int idx;
> > +
> > + for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) {
> > + struct resource *r = &dev->resource[idx];
> > +
> > + if (!r->flags || r->parent)
> > + continue;
> > +
> > + pci_claim_bridge_resource(dev, idx);
> > + }
> > +}
> > +
>
> Nitpicking: Since pci_claim_bridge_resources() is small, and only called
> once from pci_read_brdige_bases(), should we just put the loop inside
> the function?
I think it is ok to add a function for it, I am not fussed either
way I am more concerned by testing the patch on archs I do not have
access to.
Thank you,
Lorenzo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists