Re: [PATCH V4 1/2] PCI: pcibus address to resource converting take bus directly

2012-06-28 Thread Benjamin Herrenschmidt
On Wed, 2012-06-27 at 12:15 -0600, Bjorn Helgaas wrote: > > This patch appears to have multiple unrelated changes: > > - change "struct pci_bus *bus" to "struct pci_bus *root_bus" > - change find_pci_host_bridge() argument from dev to bus > - fiddle with pcibios_bus_to_resource() and > pcib

Re: [PATCH V4 1/2] PCI: pcibus address to resource converting take bus directly

2012-06-27 Thread Gavin Shan
>> For allocating resource under bus path, we do have dev pass along, >> and we could just use bus instead. Also, we'd like to make function >> find_pci_host_bridge() global so that some platforms (e.g. PPC) can >> access the pci host bridge directly. > >This patch appears to have multiple unrelate

Re: [PATCH V4 1/2] PCI: pcibus address to resource converting take bus directly

2012-06-27 Thread Bjorn Helgaas
On Wed, Jun 27, 2012 at 8:48 AM, Gavin Shan wrote: > For allocating resource under bus path, we do have dev pass along, > and we could just use bus instead. Also, we'd like to make function > find_pci_host_bridge() global so that some platforms (e.g. PPC) can > access the pci host bridge directly.

[PATCH V4 1/2] PCI: pcibus address to resource converting take bus directly

2012-06-27 Thread Gavin Shan
For allocating resource under bus path, we do have dev pass along, and we could just use bus instead. Also, we'd like to make function find_pci_host_bridge() global so that some platforms (e.g. PPC) can access the pci host bridge directly. Signed-off-by: Yinghai Lu --- drivers/pci/host-bridge.c