diff options
author | Victor Gu <[email protected]> | 2018-04-06 16:55:31 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2018-04-16 11:21:00 +0100 |
commit | 660661afcd40ed7f515ef3369721ed58e80c0fc5 (patch) | |
tree | 9a9b1276624a211f30039356fedfc01dccfb082c /lib/memory-notifier-error-inject.c | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) |
PCI: aardvark: Fix logic in advk_pcie_{rd,wr}_conf()
The PCI configuration space read/write functions were special casing
the situation where PCI_SLOT(devfn) != 0, and returned
PCIBIOS_DEVICE_NOT_FOUND in this case.
However, while this is what is intended for the root bus, it is not
intended for the child busses, as it prevents discovering devices with
PCI_SLOT(x) != 0. Therefore, we return PCIBIOS_DEVICE_NOT_FOUND only
if we're on the root bus.
Fixes: 8c39d710363c1 ("PCI: aardvark: Add Aardvark PCI host controller driver")
Cc: <[email protected]>
Signed-off-by: Victor Gu <[email protected]>
Reviewed-by: Wilson Ding <[email protected]>
Reviewed-by: Nadav Haklai <[email protected]>
[Thomas: tweak commit log.]
Signed-off-by: Thomas Petazzoni <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions