hotplug/drc-info: Add code to search ibm,drc-info property
authorMichael Bringmann <mwb@linux.vnet.ibm.com>
Fri, 1 Dec 2017 23:19:48 +0000 (17:19 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Jan 2018 05:21:48 +0000 (16:21 +1100)
commit2fcf3ae508c23bea25ab0a0e639805eb7e573b58
tree1ea59c939094b9ffe55d799be5326896de079097
parente83636ac333441a17436a1fcd196308f59cd0b51
hotplug/drc-info: Add code to search ibm,drc-info property

rpadlpar_core.c: Provide parallel routines to search the older device-
tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types"
and "ibm,drc-power-domains"), or the new property "ibm,drc-info".

The interface to examine the DRC information is changed from a "get"
function that returns values for local verification elsewhere, to a
"check" function that validates the 'name' and/or 'type' of a device
node.  This update hides the format of the underlying device-tree
properties, and concentrates the value checks into a single function
without requiring the user to verify whether a search was successful.

Signed-off-by: Michael Bringmann <mwb@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/pci/hotplug/rpadlpar_core.c
drivers/pci/hotplug/rpadlpar_sysfs.c
drivers/pci/hotplug/rpaphp.h
drivers/pci/hotplug/rpaphp_core.c