Re: [RFC/RFT PATCH v2] PCI: move pci_read_bridge_bases to the generic PCI layer

2015-06-16 Thread Lorenzo Pieralisi
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 > Thank you ! > Please see minor comments below. [...] > > +static void pci_claim_bridge_resources(struct pci_bus *bus) > >

Re: [RFC/RFT PATCH v2] PCI: move pci_read_bridge_bases to the generic PCI layer

2015-06-15 Thread Lorenzo Pieralisi
On Sun, Jun 14, 2015 at 04:29:52PM +0100, Guenter Roeck wrote: > On 06/13/2015 02:12 AM, Lorenzo Pieralisi wrote: > > On Sat, Jun 13, 2015 at 02:47:55AM +0100, Guenter Roeck wrote: > >> On Tue, Jun 09, 2015 at 10:01:45AM +0100, Lorenzo Pieralisi wrote: > >>> When a PCI bus is scanned, upon PCI brid

Re: [RFC/RFT PATCH v2] PCI: move pci_read_bridge_bases to the generic PCI layer

2015-06-14 Thread Guenter Roeck
On 06/13/2015 02:12 AM, Lorenzo Pieralisi wrote: On Sat, Jun 13, 2015 at 02:47:55AM +0100, Guenter Roeck wrote: On Tue, Jun 09, 2015 at 10:01:45AM +0100, Lorenzo Pieralisi wrote: When a PCI bus is scanned, upon PCI bridge detection the kernel has to read the bridge registers to set-up its resou

Re: [RFC/RFT PATCH v2] PCI: move pci_read_bridge_bases to the generic PCI layer

2015-06-13 Thread Lorenzo Pieralisi
On Sat, Jun 13, 2015 at 02:47:55AM +0100, Guenter Roeck wrote: > On Tue, Jun 09, 2015 at 10:01:45AM +0100, Lorenzo Pieralisi wrote: > > When a PCI bus is scanned, upon PCI bridge detection the kernel > > has to read the bridge registers to set-up its resources so that > > the PCI resource hierarchy

Re: [RFC/RFT PATCH v2] PCI: move pci_read_bridge_bases to the generic PCI layer

2015-06-12 Thread Guenter Roeck
On Tue, Jun 09, 2015 at 10:01:45AM +0100, Lorenzo Pieralisi wrote: > When a PCI bus is scanned, upon PCI bridge detection the kernel > has to read the bridge registers to set-up its resources so that > the PCI resource hierarchy can be validated properly. > > Most if not all architectures read PCI

Re: [RFC/RFT PATCH v2] PCI: move pci_read_bridge_bases to the generic PCI layer

2015-06-12 Thread Guenter Roeck
On 06/09/2015 02:01 AM, Lorenzo Pieralisi wrote: When a PCI bus is scanned, upon PCI bridge detection the kernel has to read the bridge registers to set-up its resources so that the PCI resource hierarchy can be validated properly. Most if not all architectures read PCI bridge registers in the p

Re: [RFC/RFT PATCH v2] PCI: move pci_read_bridge_bases to the generic PCI layer

2015-06-11 Thread Suravee Suthikulanit
For ARM64 PROBE_ONLY and non-PROBE_ONLY modes: Reviewed and Tested-by: Suravee Suthikulpanit Please see minor comments below. On 6/9/2015 4:01 AM, Lorenzo Pieralisi wrote: When a PCI bus is scanned, upon PCI bridge detection the kernel has to read the bridge registers to set-up its resource

[RFC/RFT PATCH v2] PCI: move pci_read_bridge_bases to the generic PCI layer

2015-06-09 Thread Lorenzo Pieralisi
When a PCI bus is scanned, upon PCI bridge detection the kernel has to read the bridge registers to set-up its resources so that the PCI resource hierarchy can be validated properly. Most if not all architectures read PCI bridge registers in the pcibios_fixup_bus hook, that is called by the PCI ge