Commit 2634387b authored by Matthias Schiffer's avatar Matthias Schiffer Committed by Zheng Zengkai
Browse files

mfd: tqmx86: Clear GPIO IRQ resource when no IRQ is set

stable inclusion
from stable-5.10.68
commit 87479b10eb72f82aa45e8dc6a3dd9bfaec38f9d7
bugzilla: 182671 https://gitee.com/openeuler/kernel/issues/I4EWUH

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



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

[ Upstream commit a946506c ]

The driver was registering IRQ 0 when no IRQ was set. This leads to
warnings with newer kernels.

Clear the resource flags, so no resource is registered at all in this
case.

Fixes: 2f17dd34 ("mfd: tqmx86: IO controller with I2C, Wachdog and GPIO")
Signed-off-by: default avatarMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent ac124fc8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment