Commit ea53919b authored by Frederic Barrat's avatar Frederic Barrat Committed by Michael Ellerman

pci/hotplug/pnv-php: Register opencapi slots

Add the opencapi PHBs to the list of PHBs being scanned to look for
slots.
Signed-off-by: default avatarFrederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: default avatarAndrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191121134918.7155-9-fbarrat@linux.ibm.com
parent 323c2a26
......@@ -1009,6 +1009,8 @@ static int __init pnv_php_init(void)
for_each_compatible_node(dn, NULL, "ibm,ioda3-phb")
pnv_php_register(dn);
for_each_compatible_node(dn, NULL, "ibm,ioda2-npu2-opencapi-phb")
pnv_php_register_one(dn); /* slot directly under the PHB */
return 0;
}
......@@ -1021,6 +1023,9 @@ static void __exit pnv_php_exit(void)
for_each_compatible_node(dn, NULL, "ibm,ioda3-phb")
pnv_php_unregister(dn);
for_each_compatible_node(dn, NULL, "ibm,ioda2-npu2-opencapi-phb")
pnv_php_unregister_one(dn); /* slot directly under the PHB */
}
module_init(pnv_php_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment