PCI: aardvark: Rewrite IRQ code to chained IRQ handler
authorPali Rohár <pali@kernel.org>
Mon, 10 Jan 2022 01:49:59 +0000 (02:49 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 8 Feb 2022 10:41:34 +0000 (10:41 +0000)
commit1571d67dc190e50c6c56e8f88cdc39f7cc53166e
tree3b281cf2c0369d6d6cd9f3a07c7c319b125a8161
parentb0b0b8b897f8e12b2368e868bd7cdc5742d5c5a9
PCI: aardvark: Rewrite IRQ code to chained IRQ handler

Rewrite the code to use irq_set_chained_handler_and_data() handler with
chained_irq_enter() and chained_irq_exit() processing instead of using
devm_request_irq().

advk_pcie_irq_handler() reads IRQ status bits and calls other functions
based on which bits are set. These functions then read its own IRQ status
bits and calls other aardvark functions based on these bits. Finally
generic_handle_domain_irq() with translated linux IRQ numbers are called.

Link: https://lore.kernel.org/r/20220110015018.26359-5-kabel@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-aardvark.c