OSDN Git Service

s390/pci: unify de-/configure for slots and events
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 3 Nov 2020 09:41:20 +0000 (10:41 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 22 Mar 2021 10:36:04 +0000 (11:36 +0100)
commit2631f6b6f22ca613238a416a09e3d2771def6f88
tree9ab0b08d9edc24ec45b8c4f20a4e3721a77d8ed1
parenta4f17cc726712a52122ad38540bc3ff3a052d1a4
s390/pci: unify de-/configure for slots and events

A zPCI event with PEC 0x0301 for an existing zPCI device goes through
the same actions as enable_slot(). Similarly a zPCI event with PEC
0x0303 does the same steps as disable_slot().
We can thus unify both actions as zpci_configure_device() respectively
zpci_deconfigure_device().

Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/pci.h
arch/s390/pci/pci.c
arch/s390/pci/pci_event.c
drivers/pci/hotplug/s390_pci_hpc.c