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

Wolfgang Denk wd at denx.de
Sun Jan 9 21:01:03 CET 2011


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>

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I have a theory that it's impossible to prove anything, but  I  can't
prove it.


More information about the U-Boot mailing list