tools/pci: Use pci_device_enable() to enable bridge
Enabling the bridge by writing to the PCI config space does not enable
all the host resources required.
Use pci_device_enable api.
Signed-off-by: Vivekanand Veeracholan <vveerach@google.com>
Change-Id: I159a132b76eadc569efb8fb47488a4abd4c27404
diff --git a/tools/pciaccess.cpp b/tools/pciaccess.cpp
index 0d2ae0b..e5b9a2f 100644
--- a/tools/pciaccess.cpp
+++ b/tools/pciaccess.cpp
@@ -34,6 +34,11 @@
return ::pci_iterator_destroy(iter);
}
+void PciAccessImpl::pci_device_enable(struct pci_device* dev) const
+{
+ return ::pci_device_enable(dev);
+}
+
struct pci_device*
PciAccessImpl::pci_device_next(struct pci_device_iterator* iter) const
{