soc: fsl: qe: Use generic_handle_domain_irq()

Replace the irq_find_mapping() + generic_handle_irq() pattern with
generic_handle_domain_irq(), which handles the IRQ domain lookup
internally. This is less error-prone and more idiomatic.

Remove the now-unused irq_find_mapping() call from qepic_get_irq().

Signed-off-by: Paul Louvel <paul.louvel@bootlin.com>
Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Link: https://lore.kernel.org/r/20260708-qe-pic-gpios-v2-5-1972044cfbd1@bootlin.com
Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
This commit is contained in:
Paul Louvel 2026-07-08 12:15:18 +02:00 committed by Christophe Leroy (CS GROUP)
parent 5ddc1624b3
commit 9727108464

View File

@ -78,16 +78,17 @@ static int qepic_get_irq(struct irq_desc *desc)
if (!event)
return -1;
return irq_find_mapping(data->host, 32 - ffs(event));
return 32 - ffs(event);
}
static void qepic_cascade(struct irq_desc *desc)
{
struct qepic_data *data = irq_desc_get_handler_data(desc);
struct irq_chip *chip = irq_desc_get_chip(desc);
chained_irq_enter(chip, desc);
generic_handle_irq(qepic_get_irq(desc));
generic_handle_domain_irq(data->host, qepic_get_irq(desc));
chained_irq_exit(chip, desc);
}