]> git.itanic.dy.fi Git - linux-stable/commit
irqchip/loongson-eiointc: Fix incorrect use of acpi_get_vec_parent
authorJianmin Lv <lvjianmin@loongson.cn>
Fri, 7 Apr 2023 08:34:50 +0000 (16:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:53 +0000 (11:53 +0200)
commitfa29d577e2fc46842fe70b02747651ca3e5893b5
tree16fddb478350839fb901be49b38c56c08d9e5d2f
parent9e7f788dd74a45bc6c744c0c416cd3c691ced684
irqchip/loongson-eiointc: Fix incorrect use of acpi_get_vec_parent

[ Upstream commit 64cc451e45e146b2140211b4f45f278b93b24ac0 ]

In eiointc_acpi_init(), a *eiointc* node is passed into
acpi_get_vec_parent() instead of a required *NUMA* node (on some chip
like 3C5000L, a *NUMA* node means a *eiointc* node, but on some chip
like 3C5000, a *NUMA* node contains 4 *eiointc* nodes), and node in
struct acpi_vector_group is essentially a *NUMA* node, which will
lead to no parent matched for passed *eiointc* node. so the patch
adjusts code to use *NUMA* node for parameter node of
acpi_set_vec_parent/acpi_get_vec_parent.

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-3-lvjianmin@loongson.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-loongson-eiointc.c