Endpoint's pci_dn can be created dynamically.

Signed-off-by: Sergey Miroshnichenko <s.miroshniche...@yadro.com>
---
 arch/powerpc/kernel/pci_dn.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/pci_dn.c b/arch/powerpc/kernel/pci_dn.c
index 5ce752874827..1b9f563d9461 100644
--- a/arch/powerpc/kernel/pci_dn.c
+++ b/arch/powerpc/kernel/pci_dn.c
@@ -530,8 +530,10 @@ void pci_devs_phb_init_dynamic(struct pci_controller *phb)
                phb->pci_data = pdn;
        }
 
-       /* Update dn->phb ptrs for new phb and children devices */
-       pci_traverse_device_nodes(dn, add_pdn, phb);
+       if (!pci_has_flag(PCI_REASSIGN_ALL_BUS)) {
+               /* Update dn->phb ptrs for new phb and children devices */
+               pci_traverse_device_nodes(dn, add_pdn, phb);
+       }
 }
 
 /** 
-- 
2.17.1

Reply via email to