s390/pci: Handling multifunctions
authorPierre Morel <pmorel@linux.ibm.com>
Wed, 22 Apr 2020 13:15:23 +0000 (15:15 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 28 Apr 2020 11:49:47 +0000 (13:49 +0200)
commit44510d6fa0c00aa90b80075caa6b313b25927475
tree23c0c41788e48e66cd343b7db76e5595bbc037d6
parent65e450a9f9adabf3de1305a4c616f1313df402a3
s390/pci: Handling multifunctions

We allow multiple functions on a single bus.
We suppress the ZPCI_DEVFN definition and replace its
occurences with zpci->devfn.

We verify the number of device during the registration.

There can never be more domains in use than existing
devices, so we do not need to verify the count of domain
after having verified the count of devices.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/pci.h
arch/s390/pci/pci.c
arch/s390/pci/pci_bus.c
arch/s390/pci/pci_bus.h
arch/s390/pci/pci_event.c
drivers/pci/hotplug/s390_pci_hpc.c