]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit687568229bd4d8a3cecae6f41cb5d93f894f5505
tree23c0c41788e48e66cd343b7db76e5595bbc037d6
parentff5456a136758c9370f69d3f4bf606bc89b2732c
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