Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac0343a4 authored by Jianguo Chen's avatar Jianguo Chen Committed by Greg Kroah-Hartman
Browse files

irqchip/mbigen: Don't clear eventid when freeing an MSI



[ Upstream commit fca269f201a8d9985c0a31fb60b15d4eb57cef80 ]

mbigen_write_msg clears eventid bits of a mbigen register
when free a interrupt, because msi_domain_deactivate memset
struct msg to zero. Then multiple mbigen pins with zero eventid
will report the same interrupt number.

The eventid clear call trace:
                free_irq
                __free_irq
                irq_shutdown
                irq_domain_deactivate_irq
                __irq_domain_deactivate_irq
                __irq_domain_deactivate_irq
                msi_domain_deactivate
                platform_msi_write_msg
                mbigen_write_msg

Signed-off-by: default avatarJianguo Chen <chenjianguo3@huawei.com>
[maz: massaged subject]
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f3c3b0f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment