From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 13 Oct 2011 15:03:43 +0200 Subject: [U-Boot] [PATCH v2 1/1] pci: move pcidelay code to new location just before PCI bus scan In-Reply-To: <4E96DE7A.6090406@esd.eu> References: <1318346295-15601-1-git-send-email-agust@denx.de> <1318409070-11792-1-git-send-email-agust@denx.de> <4E96DE7A.6090406@esd.eu> Message-ID: <201110131503.43311.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 13 October 2011 14:50:02 Matthias Fuchs wrote: > On 12.10.2011 10:44, Anatolij Gustschin 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 > > Cc: Matthias Fuchs > > --- > > > > Changes since first version: > > - extend to wait only during initial pci_hose_scan() call > > > > as pointed out by Matthias > > Tested on PMC440. Works fine. > > Acked-by: Matthias Fuchs Thanks. In this case a: Tested-by: ... would be even better. :) Thanks, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de