irqchip/sifive-plic: Convert PLIC driver into a platform driver
authorAnup Patel <apatel@ventanamicro.com>
Thu, 22 Feb 2024 09:39:49 +0000 (15:09 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 Feb 2024 09:18:43 +0000 (10:18 +0100)
commit8ec99b033147ef3bb8f0a560c24eb1baec3bc0be
tree3fdc19af3ff901a55be8809448268391c8ba6052
parent129993da1bede32d5c605c46d4ff10384359d385
irqchip/sifive-plic: Convert PLIC driver into a platform driver

The PLIC driver does not require very early initialization so convert
it into a platform driver.

After conversion, the PLIC driver is probed after CPUs are brought-up
so setup cpuhp state after context handler of all online CPUs are
initialized otherwise PLIC driver crashes for platforms with multiple
PLIC instances.

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