pinctrl: rockchip: clear int status when driver probed
Some devices may do gpio interrupt trigger and make an int status before pinctrl driver probed, then the gpio handler will keep complain untill the device driver works to stop trigger. Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20210223101937.273085-1-jay.xu@rock-chips.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
35b25fd32b
commit
b37c35781d
@ -3433,6 +3433,7 @@ static int rockchip_interrupts_register(struct platform_device *pdev,
|
|||||||
* things enabled, so for us that's all masked and all enabled.
|
* things enabled, so for us that's all masked and all enabled.
|
||||||
*/
|
*/
|
||||||
writel_relaxed(0xffffffff, bank->reg_base + GPIO_INTMASK);
|
writel_relaxed(0xffffffff, bank->reg_base + GPIO_INTMASK);
|
||||||
|
writel_relaxed(0xffffffff, bank->reg_base + GPIO_PORTS_EOI);
|
||||||
writel_relaxed(0xffffffff, bank->reg_base + GPIO_INTEN);
|
writel_relaxed(0xffffffff, bank->reg_base + GPIO_INTEN);
|
||||||
gc->mask_cache = 0xffffffff;
|
gc->mask_cache = 0xffffffff;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user