Commit c0130faf authored by Federico Vaga's avatar Federico Vaga

sw:drv: mask GPIO_INT_STATUS on software

The hardware does not keep in count the INT_MASK, but on our side
we do no want to handle interrupts that have not been requested.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 983e5626
......@@ -308,6 +308,7 @@ static irqreturn_t gn412x_gpio_irq_handler_t(int irq, void *arg)
int i;
gpio_int_status = gn412x_ioread32(gn412x, GNGPIO_INT_STATUS);
gpio_int_status &= ~gn412x_ioread32(gn412x, GNGPIO_INT_MASK);
if (!gpio_int_status)
goto out_enable_irq;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment