提交 2634387b 编写于 作者: M Matthias Schiffer 提交者: Zheng Zengkai

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: NMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 ac124fc8
...@@ -209,6 +209,8 @@ static int tqmx86_probe(struct platform_device *pdev) ...@@ -209,6 +209,8 @@ static int tqmx86_probe(struct platform_device *pdev)
/* Assumes the IRQ resource is first. */ /* Assumes the IRQ resource is first. */
tqmx_gpio_resources[0].start = gpio_irq; tqmx_gpio_resources[0].start = gpio_irq;
} else {
tqmx_gpio_resources[0].flags = 0;
} }
ocores_platfom_data.clock_khz = tqmx86_board_id_to_clk_rate(board_id); ocores_platfom_data.clock_khz = tqmx86_board_id_to_clk_rate(board_id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册