s390/pci: improve pci hotplug
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 9 May 2017 10:27:30 +0000 (12:27 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 28 Jun 2017 05:32:12 +0000 (07:32 +0200)
commit623bd44d3f277b7bbe16e0e091bd361e75964b5d
tree8ac1b17efed6df637352a6d31f4179821dc93477
parent783684f1f60faec09f3ac74c0b12e89bdb182429
s390/pci: improve pci hotplug

PCI hotplug events basically notify about the new state of a
function. Unfortunately some hypervisors implement hotplug
events in a way where it is not clear what the new state of
the function should be.

Use clp_get_state to find the current state of the function
and handle accordingly.

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>
arch/s390/include/asm/pci.h
arch/s390/pci/pci.c
arch/s390/pci/pci_event.c