[U-Boot] [PATCH v2] powerpc/fsl-pci: Determine pci_controller based on cfg addr for dts fixup

Kumar Gala galak at kernel.crashing.org
Sun Jan 9 21:44:45 CET 2011


On Jan 9, 2011, at 2:01 PM, Wolfgang Denk wrote:

> Dear Kumar Gala,
> 
> In message <1294183251-4905-1-git-send-email-galak at kernel.crashing.org> you wrote:
>> Previously we passed in a specifically named struct pci_controller to
>> determine if we had setup the particular PCI bus.  Now we can search for
>> the struct so we dont have to depend on the name or the struct being
>> statically allocated.
>> 
>> Introduced new find_hose_by_cfg_addr() to get back a pci_controller struct
>> back by searching for it means we can do things like dynamically allocate
>> them or not have to expose the static structures to all users.
>> 
>> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
>> ---
>> * Merged with find_hose_by_cfg_addr patch
>> * Fixed find_hose_by_cfg_addr to have { } for multiline for
>> 
>> arch/powerpc/include/asm/fsl_pci.h |   43 ++---------------------------------
>> drivers/pci/fsl_pci_init.c         |    5 +++-
>> drivers/pci/pci.c                  |   12 ++++++++++
>> include/pci.h                      |    1 +
>> 4 files changed, 20 insertions(+), 41 deletions(-)
> 
> Acked-by: Wolfgang Denk <wd at denx.de>

applied to 85xx

- k



More information about the U-Boot mailing list