cache: sifive_ccache: Partially convert to a platform driver
authorSamuel Holland <samuel.holland@sifive.com>
Wed, 27 Mar 2024 05:45:24 +0000 (22:45 -0700)
committerConor Dooley <conor.dooley@microchip.com>
Thu, 28 Mar 2024 22:40:56 +0000 (22:40 +0000)
commitc90847bcbfb65d0f1c48fcc73a2b3a2d4ceac6a1
tree35ef25ccad2ec3a49dadb3ca8781c12ab9775baa
parent4cece764965020c22cff7665b18a012006359095
cache: sifive_ccache: Partially convert to a platform driver

Commit 8ec99b033147 ("irqchip/sifive-plic: Convert PLIC driver into a
platform driver") broke ccache initialization because the PLIC IRQ
domain is no longer available during an arch_initcall:

  [    0.087229] irq: no irq domain found for interrupt-controller@c000000 !
  [    0.087255] CCACHE: Could not request IRQ 0

Fix this by moving the IRQ handling code to a platform driver.

Fixes: 8ec99b033147 ("irqchip/sifive-plic: Convert PLIC driver into a platform driver")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/cache/sifive_ccache.c