]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/sifive-plic: Parse number of interrupts and contexts early in plic_probe()
authorAnup Patel <apatel@ventanamicro.com>
Thu, 22 Feb 2024 09:39:54 +0000 (15:09 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 Feb 2024 09:18:44 +0000 (10:18 +0100)
commit95652106478030f54620b1f0d28f78ab110b3212
tree9891cab7871af02fb9b26ce106a3f50fdfa15dc2
parenta15587277a246c388c83b1cd9cf7c1a868cd752f
irqchip/sifive-plic: Parse number of interrupts and contexts early in plic_probe()

The SiFive PLIC driver needs to know the number of interrupts and contexts
to complete initialization. Parse these details early in plic_probe() to
avoid unnecessary memory allocations and register mappings if these details
are not available.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240222094006.1030709-7-apatel@ventanamicro.com
drivers/irqchip/irq-sifive-plic.c