summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Louvel <paul.louvel@bootlin.com>2026-07-08 12:15:18 +0200
committerChristophe Leroy (CS GROUP) <chleroy@kernel.org>2026-08-03 14:58:59 +0200
commit9727108464115732a9957f268be510a916a13c07 (patch)
treeb87ec5a147d02efecf4f2d3eed81c7101b18bd3c
parent5ddc1624b3aca9c63712f3a5be578c6c3b222627 (diff)
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>
-rw-r--r--drivers/soc/fsl/qe/qe_ports_ic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/soc/fsl/qe/qe_ports_ic.c b/drivers/soc/fsl/qe/qe_ports_ic.c
index c3768c82a58c..c8fff45e353c 100644
--- a/drivers/soc/fsl/qe/qe_ports_ic.c
+++ b/drivers/soc/fsl/qe/qe_ports_ic.c
@@ -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);
}