gpio: rockchip: clear pendings before isr_handler is valid

Change-Id: I93625437bc4e0096fbc6eca42f6bb3852a672d94
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
Ziyuan Xu
2020-12-30 09:00:44 +08:00
committed by Tao Huang
parent e1d7d04c2c
commit 83cd7dfb99

View File

@@ -522,6 +522,7 @@ static int rockchip_interrupts_register(struct rockchip_pin_bank *bank)
* things enabled, so for us that's all masked and all enabled.
*/
rockchip_gpio_writel(bank, 0xffffffff, bank->gpio_regs->int_mask);
rockchip_gpio_writel(bank, 0xffffffff, bank->gpio_regs->port_eoi);
rockchip_gpio_writel(bank, 0xffffffff, bank->gpio_regs->int_en);
gc->mask_cache = 0xffffffff;