Thread (50 messages) 50 messages, 6 authors, 2019-11-19

Re: [PATCH 08/11] pci/hotplug/pnv-php: Register opencapi slots

From: Andrew Donnellan <hidden>
Date: 2019-11-19 05:21:14

On 10/9/19 1:45 am, Frederic Barrat wrote:
quoted hunk ↗ jump to hunk
Add the opencapi PHBs to the list of PHBs being scanned to look for
slots.

Signed-off-by: Frederic Barrat <redacted>
---
  drivers/pci/hotplug/pnv_php.c | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/pci/hotplug/pnv_php.c b/drivers/pci/hotplug/pnv_php.c
index 304bdbcdb77c..f0a7360154e7 100644
--- a/drivers/pci/hotplug/pnv_php.c
+++ b/drivers/pci/hotplug/pnv_php.c
@@ -954,7 +954,8 @@ static int __init pnv_php_init(void)
  	pr_info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
  	for_each_compatible_node(dn, NULL, "ibm,ioda2-phb")
  		pnv_php_register(dn);
-
+	for_each_compatible_node(dn, NULL, "ibm,ioda2-npu2-opencapi-phb")
+		pnv_php_register_one(dn);
  	return 0;
  }
  
@@ -964,6 +965,8 @@ static void __exit pnv_php_exit(void)
  
  	for_each_compatible_node(dn, NULL, "ibm,ioda2-phb")
  		pnv_php_unregister(dn);
+	for_each_compatible_node(dn, NULL, "ibm,ioda2-npu2-opencapi-phb")
+		pnv_php_unregister(dn);
  }

Why do we use register_one to register and unregister rather than 
unregister_one to unregister?

-- 
Andrew Donnellan              OzLabs, ADL Canberra
ajd@linux.ibm.com             IBM Australia Limited
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help