diff mbox series

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

Message ID 20191024180259.882169-6-s.miroshnichenko@yadro.com
State New
Headers show
Series core/pci: Track changes of topology by an OS | expand

Checks

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

Commit Message

Sergei Miroshnichenko Oct. 24, 2019, 6:02 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

Patch

diff --git a/core/pci.c b/core/pci.c
index 476a3825..9118c7e1 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");
 
 	init_lock(&phb->lock);