b0e5196a52
pci_bus_is_root() currently relies on a method in the PCIBusClass. But it's always known if a PCI bus is a root bus when we create it, so using a dynamic method is overkill. This replaces it with an IS_ROOT bit in a new flags field, which is set on root buses and otherwise clear. As a bonus this removes the special is_root logic from pci_expander_bridge, since it already creates its bus as a root bus. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Message-Id: <20190424041959.4087-3-david@gibson.dropbear.id.au> |
||
---|---|---|
.. | ||
msi.h | ||
msix.h | ||
pci_bridge.h | ||
pci_bus.h | ||
pci_host.h | ||
pci_ids.h | ||
pci_regs.h | ||
pci.h | ||
pcie_aer.h | ||
pcie_host.h | ||
pcie_port.h | ||
pcie_regs.h | ||
pcie.h | ||
shpc.h | ||
slotid_cap.h |