linux-stable/drivers/pci/hotplug
Tyrel Datwyler 4f9f2d3d7a PCI: rpaphp: Correctly match ibm, my-drc-index to drc-name when using drc-info
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
2019-11-13 16:57:58 +11:00
..
acpi_pcihp.c
acpiphp.h
acpiphp_core.c
acpiphp_glue.c
acpiphp_ibm.c
cpci_hotplug.h
cpci_hotplug_core.c PCI: Remove unnecessary returns 2019-08-30 14:00:34 -05:00
cpci_hotplug_pci.c
cpcihp_generic.c
cpcihp_zt5550.c
cpcihp_zt5550.h
cpqphp.h
cpqphp_core.c PCI: Remove unnecessary returns 2019-08-30 14:00:34 -05:00
cpqphp_ctrl.c PCI: Remove unnecessary returns 2019-08-30 14:00:34 -05:00
cpqphp_nvram.c
cpqphp_nvram.h PCI: Remove unnecessary returns 2019-08-30 14:00:34 -05:00
cpqphp_pci.c
cpqphp_sysfs.c
ibmphp.h
ibmphp_core.c
ibmphp_ebda.c
ibmphp_hpc.c
ibmphp_pci.c
ibmphp_res.c PCI: Mark expected switch fall-through 2019-08-08 15:13:34 -05:00
Kconfig PCI/hotplug: remove the sgi_hotplug driver 2019-08-16 11:33:56 -07:00
Makefile PCI/hotplug: remove the sgi_hotplug driver 2019-08-16 11:33:56 -07:00
pci_hotplug_core.c
pciehp.h PCI: pciehp: Refer to "Indicators" instead of "LEDs" in comments 2019-09-05 15:52:24 -05:00
pciehp_core.c PCI: pciehp: Remove pciehp_set_attention_status() 2019-09-05 15:44:08 -05:00
pciehp_ctrl.c PCI: pciehp: Refer to "Indicators" instead of "LEDs" in comments 2019-09-05 15:52:24 -05:00
pciehp_hpc.c PCI: pciehp: Remove pciehp_green_led_{on,off,blink}() 2019-09-05 15:45:00 -05:00
pciehp_pci.c
pnv_php.c pci-hotplug/pnv_php: Add attention indicator support 2019-09-05 14:22:39 +10:00
rpadlpar.h
rpadlpar_core.c PCI: Remove unnecessary returns 2019-08-30 14:00:34 -05:00
rpadlpar_sysfs.c
rpaphp.h
rpaphp_core.c PCI: rpaphp: Correctly match ibm, my-drc-index to drc-name when using drc-info 2019-11-13 16:57:58 +11:00
rpaphp_pci.c
rpaphp_slot.c
s390_pci_hpc.c
shpchp.h
shpchp_core.c
shpchp_ctrl.c
shpchp_hpc.c
shpchp_pci.c
shpchp_sysfs.c
TODO