lib: sbi_irqchip: Allow registering interrupt handlers

To handle external interrupts in M-mode, the sbi_irqchip framework
must allow registering interrupt handlers from device drivers.

Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260213055342.3124872-9-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Anup Patel
2026-02-13 11:23:42 +05:30
committed by Anup Patel
parent e8ebd1fbc6
commit 0ab0c470d5
5 changed files with 267 additions and 3 deletions

View File

@@ -281,6 +281,7 @@ int plic_cold_irqchip_init(struct plic_data *plic)
/* Register irqchip device */
plic->irqchip.id = plic->unique_id;
plic->irqchip.num_hwirq = plic->num_src + 1;
plic->irqchip.warm_init = plic_warm_irqchip_init;
return sbi_irqchip_add_device(&plic->irqchip);
}