core/pci: Prefer ibm, slot-label when finding loc codes
core/pci: Prefer ibm, slot-label when finding loc codes

On OpenPower systems the ibm,slot-label property is used to identify
slots rather than the more verbose ibm,slot-location-code. The
slot-label lookup is currently broken since it assumes that the
ibm,slot-label is in the PCI device node rather than in the node of the
device that provides the slot (e.g. root port or switch downstream
port).

This patch corrects the lookup code to search the parent node (and
possibly it's grandparents), similar to how we search for
ibm,slot-location-code.

Fixes: 1c3baae4f2b3 ("hdata/iohub: Look for IOVPD on P9")
Signed-off-by: Oliver O'Halloran <3dfaff8fa6ae977f042064a112a6aac576279b9b@gmail.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.ibm.com>

stewart-ibm/skiboot,legoater/skiboot,open-power/skiboot,shenki/skiboot,qemu/skiboot,open-power/skiboot,shenki/skiboot,shenki/skiboot,qemu/skiboot,open-power/skiboot,qemu/skiboot,qemu/skiboot,stewart-ibm/skiboot,legoater/skiboot,legoater/skiboot,open-power/skiboot,legoater/skiboot,qemu/skiboot,stewart-ibm/skiboot,shenki/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot