
9 Oct
2015
9 Oct
'15
3:01 p.m.
Hi Fabio,
On 9 October 2015 at 13:52, Fabio Estevam festevam@gmail.com wrote:
On Fri, Oct 9, 2015 at 6:36 AM, Simon Glass sjg@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