s390/pci: deconfigure device on release
authorNiklas Schnelle <schnelle@linux.ibm.com>
Fri, 5 Mar 2021 13:32:02 +0000 (14:32 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 22 Mar 2021 10:36:04 +0000 (11:36 +0100)
commita9045c2210448473a321a8bf266541e5644aaae2
treea7645a83675c8134232e00fe5f51f154f5b9232e
parentf6576a1b4896b984dce0e8393efeba68cc2b96c8
s390/pci: deconfigure device on release

When zpci_release_device() is called on a zPCI function that is still
configured it would not be deconfigured. Until now this hasn't caused
any problems because zpci_zdev_put() is only ever called for devices
in Standby or Reserved. Fix it by adding sclp_pci_deconfigure() to the
switch when in Configured state.

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