« Previous | Next » 

Revision 5dac82ce

ID5dac82ce0d8716b54f73f96bf50811644a76e5c2

Added by Alexey Kardashevskiy over 10 years ago

spapr-pci: fix config space access to support bridges

spapr-pci config space accessors use find_dev() to find a PCI device.
However find_dev() only searched on a primary bus and did not do
recursive search through secondary buses so config space access was not
possible for devices other that on a primary bus.

This fixed find_dev() by using the PCI API pci_find_device() function.
This effectively enabled pci bridges on spapr.

Signed-off-by: Alexey Kardashevskiy <>
Acked-by: Michael S. Tsirkin <>
Signed-off-by: Alexander Graf <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences