irqchip/loongson-eiointc: Fix irq affinity setting during resume
authorJianmin Lv <lvjianmin@loongson.cn>
Wed, 14 Jun 2023 11:59:36 +0000 (19:59 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 16 Jun 2023 11:59:28 +0000 (12:59 +0100)
commitfb07b8f83441febeb0daf199b5f18c6de9bbab03
treee62d9767e6ad154e52a145d830a3df842bec477f
parente01f9882f6fdbe0fa8ae39fe7691db2964e9fda6
irqchip/loongson-eiointc: Fix irq affinity setting during resume

The hierarchy of PCH PIC, PCH PCI MSI and EIONTC is as following:

        PCH PIC ------->|
                        |---->EIOINTC
        PCH PCI MSI --->|

so the irq_data list of irq_desc for IRQs on PCH PIC and PCH PCI MSI
is like this:

irq_desc->irq_data(domain: PCH PIC)->parent_data(domain: EIOINTC)
irq_desc->irq_data(domain: PCH PCI MSI)->parent_data(domain: EIOINTC)

In eiointc_resume(), the irq_data passed into eiointc_set_irq_affinity()
should be matched to EIOINTC domain instead of PCH PIC or PCH PCI MSI
domain, so fix it.

Fixes: a90335c2dfb4 ("irqchip/loongson-eiointc: Add suspend/resume support")

Reported-by: yangqiming <yangqiming@loongson.cn>
Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230614115936.5950-6-lvjianmin@loongson.cn
drivers/irqchip/irq-loongson-eiointc.c