]> Git Repo - linux.git/commit
irqchip/sifive-plic: Fix syscore registration for multi-socket systems
authorAnup Patel <[email protected]>
Wed, 25 Oct 2023 14:28:20 +0000 (19:58 +0530)
committerThomas Gleixner <[email protected]>
Fri, 27 Oct 2023 08:09:15 +0000 (10:09 +0200)
commitf99b926f6543faeadba1b4524d8dc9c102489135
tree51cb94533f0475a1c1e2bd09b030eda885a28659
parent08d4c174828d868d314d2475fbcaa1393f0bbba9
irqchip/sifive-plic: Fix syscore registration for multi-socket systems

Multi-socket systems have a separate PLIC in each socket, so __plic_init()
is invoked for each PLIC. __plic_init() registers syscore operations, which
obviously fails on the second invocation.

Move it into the already existing condition for installing the CPU hotplug
state so it is only invoked once when the first PLIC is initialized.

[ tglx: Massaged changelog ]

Fixes: e80f0b6a2cf3 ("irqchip/irq-sifive-plic: Add syscore callbacks for hibernation")
Signed-off-by: Anup Patel <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/irqchip/irq-sifive-plic.c
This page took 0.05466 seconds and 4 git commands to generate.