[U-Boot] [PATCH v2 1/1] pci: move pcidelay code to new location just before PCI bus scan

Wolfgang Denk wd at denx.de
Sat Oct 15 22:16:41 CEST 2011


Dear Anatolij Gustschin,

In message <1318409070-11792-1-git-send-email-agust at denx.de> you wrote:
> PCI cards might need some time after reset to respond. On some
> boards (mpc5200 or mpc8260 based) the PCI bus reset is deasserted
> at pci_init_board() time, so we currently can not use available
> "pcidelay" option for waiting before PCI bus scan since this
> waiting takes place before calling pci_init_board(). By moving
> the pcidelay code to the new location using of the "pcidelay"
> option is possible on mpc5200 or mpc8260 based boards, too.
> 
> Since pci_hose_scan() could be called multiple times, restrict
> the function to wait only during its first call and to ignore
> pcidelay for any further call (as pointed out by Matthias).
> 
> Signed-off-by: Anatolij Gustschin <agust at denx.de>
> Cc: Matthias Fuchs <matthias.fuchs at esd.eu>
> ---
> Changes since first version:
>  - extend to wait only during initial pci_hose_scan() call
>    as pointed out by Matthias
> 
>  drivers/pci/pci.c |   30 +++++++++++++++++-------------
>  1 files changed, 17 insertions(+), 13 deletions(-)

Applied, thanks.

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
A Freudian slip is when you say one thing but mean your mother.


More information about the U-Boot mailing list