irqchip/irq-sifive-plic: Add syscore callbacks for hibernation 80/301880/2
authorMason Huo <mason.huo@starfivetech.com>
Tue, 4 Apr 2023 03:29:08 +0000 (11:29 +0800)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 27 Nov 2023 06:16:34 +0000 (15:16 +0900)
commitd3cbb03f3fb1c7b7a7fba48c408add44fb08cb34
tree5d7de8ecce41df76159be1ec03074633c8d2451d
parent03089ee5f1f7dbf1262ca4e907898e2692f970f7
irqchip/irq-sifive-plic: Add syscore callbacks for hibernation

The priority and enable registers of plic will be reset
during hibernation power cycle in poweroff mode,
add the syscore callbacks to save/restore those registers.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Reviewed-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
Reviewed-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/202302140709.CdkxgtPi-lkp@intel.com/
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230404032908.89638-1-mason.huo@starfivetech.com
[hoegeun.kwon: cherry-pick the commit e80f0b6a2cf30 from mainline]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: Ic549e1d59da713ac7b2bc0d1d827c6332cbdc3c8
drivers/irqchip/irq-sifive-plic.c