From: Tom Rini Date: Mon, 24 Nov 2014 17:11:23 -0500 Subject: [U-Boot] [U-Boot, v3, 02/30] pci: Abort early if bus does not exist In-Reply-To: <1415842036-28471-3-git-send-email-sjg@chromium.org> References: <1415842036-28471-3-git-send-email-sjg@chromium.org> Message-ID: <20141124221123.GW21184@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Nov 12, 2014 at 06:26:48PM -0700, Simon Glass wrote: > From: Thierry Reding > > When listing the devices on a PCI bus, the current code will blindly try > to access all devices. Internally this causes pci_bus_to_hose() to be > repeatedly called and output an error message every time. Prevent this > by calling pci_bus_to_hose() once and abort early if no bus was found. > > Signed-off-by: Thierry Reding > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: