diff options
| author | Marc Zyngier <[email protected]> | 2021-08-02 16:26:19 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2021-08-02 16:53:05 +0000 |
| commit | d21faba11693c10072ce3b96b696445175f49be2 (patch) | |
| tree | f7a1957afc5a3db45f0e1456afffcbdd86e44b5c /drivers/pci/controller/pci-tegra.c | |
| parent | Linux 5.14-rc1 (diff) | |
| download | kernel-d21faba11693c10072ce3b96b696445175f49be2.tar.gz kernel-d21faba11693c10072ce3b96b696445175f49be2.zip | |
PCI: Bulk conversion to generic_handle_domain_irq()
Wherever possible, replace constructs that match either
generic_handle_irq(irq_find_mapping()) or
generic_handle_irq(irq_linear_revmap()) to a single call to
generic_handle_domain_irq().
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-tegra.c')
| -rw-r--r-- | drivers/pci/controller/pci-tegra.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c index c979229a6d0d..36f898643a4c 100644 --- a/drivers/pci/controller/pci-tegra.c +++ b/drivers/pci/controller/pci-tegra.c @@ -1553,12 +1553,10 @@ static void tegra_pcie_msi_irq(struct irq_desc *desc) while (reg) { unsigned int offset = find_first_bit(®, 32); unsigned int index = i * 32 + offset; - unsigned int irq; + int ret; - irq = irq_find_mapping(msi->domain->parent, index); - if (irq) { - generic_handle_irq(irq); - } else { + ret = generic_handle_domain_irq(msi->domain->parent, index); + if (ret) { /* * that's weird who triggered this? * just clear it |
