linux-uconsole/drivers/pci/hotplug
Tyrel Datwyler 802534c0ff PCI: rpaphp: Correctly match ibm, my-drc-index to drc-name when using drc-info
[ Upstream commit 4f9f2d3d7a ]

The newer ibm,drc-info property is a condensed description of the old
ibm,drc-* properties (ie. names, types, indexes, and power-domains).
When matching a drc-index to a drc-name we need to verify that the
index is within the start and last drc-index range and map it to a
drc-name using the drc-name-prefix and logical index.

Fix the mapping by checking that the index is within the range of the
current drc-info entry, and build the name from the drc-name-prefix
concatenated with the starting drc-name-suffix value and the sequential
index obtained by subtracting ibm,my-drc-index from this entries
drc-start-index.

Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1573449697-5448-10-git-send-email-tyreld@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-04 19:12:55 +01:00
..
acpi_pcihp.c
acpiphp.h
acpiphp_core.c
acpiphp_glue.c ACPI / hotplug / PCI: Allocate resources directly under the non-hotplug bridge 2019-12-17 20:35:04 +01:00
acpiphp_ibm.c
cpci_hotplug.h
cpci_hotplug_core.c
cpci_hotplug_pci.c
cpcihp_generic.c
cpcihp_zt5550.c
cpcihp_zt5550.h
cpqphp.h
cpqphp_core.c
cpqphp_ctrl.c
cpqphp_nvram.c
cpqphp_nvram.h
cpqphp_pci.c
cpqphp_sysfs.c
ibmphp.h
ibmphp_core.c
ibmphp_ebda.c
ibmphp_hpc.c
ibmphp_pci.c
ibmphp_res.c
Kconfig
Makefile
pci_hotplug_core.c
pciehp.h PCI: pciehp: Avoid returning prematurely from sysfs requests 2019-12-21 10:57:22 +01:00
pciehp_core.c PCI: portdrv: Initialize service drivers directly 2019-11-20 18:47:10 +01:00
pciehp_ctrl.c PCI: pciehp: Avoid returning prematurely from sysfs requests 2019-12-21 10:57:22 +01:00
pciehp_hpc.c PCI: pciehp: Avoid returning prematurely from sysfs requests 2019-12-21 10:57:22 +01:00
pciehp_pci.c
pnv_php.c
rpadlpar.h
rpadlpar_core.c
rpadlpar_sysfs.c
rpaphp.h
rpaphp_core.c PCI: rpaphp: Correctly match ibm, my-drc-index to drc-name when using drc-info 2020-01-04 19:12:55 +01:00
rpaphp_pci.c
rpaphp_slot.c
s390_pci_hpc.c
sgi_hotplug.c
shpchp.h
shpchp_core.c
shpchp_ctrl.c
shpchp_hpc.c
shpchp_pci.c
shpchp_sysfs.c