s390/pci: Do not disable PF when VFs exist
authorPierre Morel <pmorel@linux.ibm.com>
Thu, 26 Mar 2020 16:07:03 +0000 (12:07 -0400)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 28 Apr 2020 11:49:47 +0000 (13:49 +0200)
commit53dd462ac4dc3fc61ee90ad03d96202e17589156
treeb040b53cb1f28c85ec3561ba928a2848d9a76695
parent44510d6fa0c00aa90b80075caa6b313b25927475
s390/pci: Do not disable PF when VFs exist

The Physical function should not be disabled until no virtual
functions depends on it.
Let's force the user to first use echo 0 > sriov_numfs before
allowing to disable the PF with echo 0 > power.

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>
drivers/pci/hotplug/s390_pci_hpc.c