[v3,5/5] core/pci: Indicate support for PCI re-enumeration
diff mbox series

Message ID 20190816141714.26380-6-s.miroshnichenko@yadro.com
State New
Headers show
  • core/pci: Track changes of topology by an OS
Related show


Context Check Description
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (a1fced25bf41f1f94a3673a0b2bf68135eedce25)

Commit Message

Sergey Miroshnichenko Aug. 16, 2019, 2:17 p.m. UTC
New PHB's property "ibm,supported-movable-bdfs" shows that skiboot now
supports changing PCI bus numbers.

Signed-off-by: Sergey Miroshnichenko <s.miroshnichenko@yadro.com>
 core/pci.c | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/core/pci.c b/core/pci.c
index 7657e515..f42418bd 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -1068,6 +1068,7 @@  int64_t pci_register_phb(struct phb *phb, int opal_id)
 	if (opal_id > last_phb_id)
 		last_phb_id = opal_id;
 	dt_add_property_cells(phb->dt_node, "ibm,opal-phbid", 0, phb->opal_id);
+	dt_add_property(phb->dt_node, "ibm,supported-movable-bdfs", NULL, 0);
 	PCIDBG(phb, 0, "PCI: Registered PHB\n");