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: NAidan MacDonald <aidanmacdonald.0x0@gmail.com> Link: https://lore.kernel.org/r/20220620200644.1961936-2-aidanmacdonald.0x0@gmail.comSigned-off-by: NMark Brown <broonie@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录