mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-04-13 22:31:38 +01:00
lib: sbi_irqchip: Associate 32-bit unique ID for each irqchip device
Allow locating irqchip device instance using a unique 32-bit ID. This 32-bit unique ID can be set by the irqchip driver at the time of adding irqchip device. Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260213055342.3124872-8-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -280,6 +280,7 @@ int plic_cold_irqchip_init(struct plic_data *plic)
|
||||
}
|
||||
|
||||
/* Register irqchip device */
|
||||
plic->irqchip.id = plic->unique_id;
|
||||
plic->irqchip.warm_init = plic_warm_irqchip_init;
|
||||
return sbi_irqchip_add_device(&plic->irqchip);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user