Commit 87d72288 authored by Aidan MacDonald's avatar Aidan MacDonald Committed by Zheng Zengkai
Browse files

regmap-irq: Fix a bug in regmap_irq_enable() for type_in_mask chips

stable inclusion
from stable-v5.10.127
commit 7d7450363fdfd17222f70f2014a5abe2a1fe2e2b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5XDDK

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7d7450363fdfd17222f70f2014a5abe2a1fe2e2b



--------------------------------

[ Upstream commit 485037ae ]

When enabling a type_in_mask irq, the type_buf contents must be
AND'd with the mask of the IRQ we're enabling to avoid enabling
other IRQs by accident, which can happen if several type_in_mask
irqs share a mask register.

Fixes: bc998a73 ("regmap: irq: handle HW using separate rising/falling edge interrupts")
Signed-off-by: default avatarAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20220620200644.1961936-2-aidanmacdonald.0x0@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent cdb6b54c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment