s390/pci: add zpci_set_irq()/zpci_clear_irq()
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 10 Dec 2020 14:28:05 +0000 (15:28 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 28 Jun 2021 09:18:28 +0000 (11:18 +0200)
commitc1e18c17bda68cdf2b58744b2864836de05dcf3a
tree2d984dc4ccd81a9633ed325f2722c0460e8ef9d0
parente2bc3e91d91ede6710801fa0737e4e4ed729b19e
s390/pci: add zpci_set_irq()/zpci_clear_irq()

Pull the directed vs floating IRQ check into common
zpci_set_irq()/zpci_clear_irq() functions and expose them for the rest
of the zPCI subsystem. Furthermore we add a zdev flag bit to easily
check if IRQs are registered. This is needed for use in resetting a zPCI
function.

Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-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_irq.c