Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: rpaphp: change device tree examination

Change the criterion that RPA PCI Hotplug and RPA DLPAR use when
determining the hotplug capabilities of a given device node. The
"device_type" property is less consistent than "name" across PCI nodes
on newer hardware.

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

John Rose and committed by
Greg Kroah-Hartman
a57ed79e ac9e9891

+2 -2
+1 -1
drivers/pci/hotplug/rpadlpar_core.c
··· 63 63 char *type; 64 64 int rc; 65 65 66 - while ((np = of_find_node_by_type(np, "pci"))) { 66 + while ((np = of_find_node_by_name(np, "pci"))) { 67 67 rc = rpaphp_get_drc_props(np, NULL, &name, &type, NULL); 68 68 if (rc == 0) 69 69 if (!strcmp(drc_name, name) && !strcmp(drc_type, type))
+1 -1
drivers/pci/hotplug/rpaphp_core.c
··· 356 356 info(DRIVER_DESC " version: " DRIVER_VERSION "\n"); 357 357 init_MUTEX(&rpaphp_sem); 358 358 359 - while ((dn = of_find_node_by_type(dn, "pci"))) 359 + while ((dn = of_find_node_by_name(dn, "pci"))) 360 360 rpaphp_add_slot(dn); 361 361 362 362 return 0;