linux/arch/s390/pci
Sebastian Ott 9a99649f2a s390/pci: remove pdev pointer from arch data
For each PCI function we need to maintain arch specific data in
struct zpci_dev which also contains a pointer to struct pci_dev.

When a function is registered or deregistered (which is triggered by PCI
common code) we need to adjust that pointer which could interfere with
the machine check handler (triggered by FW) using zpci_dev->pdev.

Since multiple instances of the same pdev could exist at a time this can't
be solved with locking.

Fix that by ditching the pdev pointer and use a bus walk to reach
struct pci_dev (only one instance of a pdev can be registered at the bus
at a time).

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-02-23 08:56:16 +01:00
..
Makefile s390/kernel: add system calls for PCI memory access 2014-11-19 09:46:43 +01:00
pci_clp.c s390/pci: improve irq number check for msix 2014-11-03 13:30:12 +01:00
pci_debug.c s390/pci: remove pdev pointer from arch data 2016-02-23 08:56:16 +01:00
pci_dma.c s390/pci: remove pdev pointer from arch data 2016-02-23 08:56:16 +01:00
pci_event.c s390/pci: remove pdev pointer from arch data 2016-02-23 08:56:16 +01:00
pci_insn.c s390/pci: reshuffle struct used to write debug data 2015-10-14 14:32:17 +02:00
pci_mmio.c s390/pci: fix possible information leak in mmio syscall 2015-02-26 09:24:48 +01:00
pci_sysfs.c s390/pci: use pci_rescan_remove_lock 2015-07-29 09:11:56 +02:00
pci.c s390/pci: remove pdev pointer from arch data 2016-02-23 08:56:16 +01:00