[U-Boot] [PATCH] cmd_pci: Check for VendorID earlier

Simon Glass sjg at chromium.org
Fri Oct 9 15:01:40 CEST 2015


Hi Fabio,

On 9 October 2015 at 13:52, Fabio Estevam <festevam at gmail.com> wrote:
> On Fri, Oct 9, 2015 at 6:36 AM, Simon Glass <sjg at chromium.org> wrote:
>
>> This seems really odd to me. Why would pci_read_config_word() return
>> an error if there is no device there? Is that the real bug here?
>
> Looks like the expected behaviour: It tried to scan all the PCI
> elements in the bus and it failed to read when there is no more PCI
> device.

I'm just surprised that it is failing when there is nothing there. I
think it should succeed (and read 0xffff).

What board is this? Can you find the code that is returning this
error? It may be a call to pci_set_ops() which sets read_word().

Regards,
Simon


More information about the U-Boot mailing list