OSDN Git Service

s390/pci: add zpci_event_hard_deconfigured()
authorNiklas Schnelle <schnelle@linux.ibm.com>
Wed, 16 Sep 2020 08:52:35 +0000 (10:52 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 22 Mar 2021 10:36:04 +0000 (11:36 +0100)
commitdee60c0dbc837ddca8abcb868e53ca3e9d11ea4c
tree6a868d9d075d7ac36a300593e7e8f3fc63019a58
parenta9045c2210448473a321a8bf266541e5644aaae2
s390/pci: add zpci_event_hard_deconfigured()

Extract the handling of PEC 0x0304 into a function and make sure we only
attempt to disable the function if it is enabled. Also check for errors
returned by zpci_disable_device() and leave the function alone if there
are any.

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_event.c