]> git.itanic.dy.fi Git - linux-stable/commit
irqchip/loongson-pch-pic: Fix registration of syscore_ops
authorJianmin Lv <lvjianmin@loongson.cn>
Fri, 7 Apr 2023 08:34:52 +0000 (16:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 12:02:00 +0000 (14:02 +0200)
commit1052bee615c13b6feb31551293310064b18ef86d
treee6bf292aa3d3173269448a07213857906763794f
parent459e74ec3a3e18fe897c249058bc3653106b1904
irqchip/loongson-pch-pic: Fix registration of syscore_ops

commit c84efbba46901b187994558ee0edb15f7076c9a7 upstream.

When support suspend/resume for loongson-pch-pic, the syscore_ops
is registered twice in dual-bridges machines where there are two
pch-pic IRQ domains. Repeated registration of an same syscore_ops
broke syscore_ops_list, so the patch will corret it.

Fixes: 1ed008a2c331 ("irqchip/loongson-pch-pic: 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-5-lvjianmin@loongson.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-loongson-pch-pic.c