]> git.itanic.dy.fi Git - linux-stable/commit
irqchip/loongson-eiointc: Fix registration of syscore_ops
authorJianmin Lv <lvjianmin@loongson.cn>
Fri, 7 Apr 2023 08:34:51 +0000 (16:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 11:59:04 +0000 (13:59 +0200)
commit39c5beceb6e259596207f68a95717f04af15a8ec
tree68f3611986d40422249fabe2fd6ec1270501c6de
parentd4321e3f0c53a87e0774453249d9b620fac9dea7
irqchip/loongson-eiointc: Fix registration of syscore_ops

commit bdd60211eebb43ba1c4c14704965f4d4b628b931 upstream.

When support suspend/resume for loongson-eiointc, the syscore_ops
is registered twice in dual-bridges machines where there are two
eiointc IRQ domains. Repeated registration of an same syscore_ops
broke syscore_ops_list. Also, cpuhp_setup_state_nocalls is only
needed to call for once. So the patch will corret them.

Fixes: a90335c2dfb4 ("irqchip/loongson-eiointc: Add suspend/resume support")
Cc: stable@vger.kernel.org
Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230407083453.6305-4-lvjianmin@loongson.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-loongson-eiointc.c