Pending interrupt status is cleared by writing to the ISR, not the data reg.
MFC after: 1 week
This commit is contained in:
parent
437aa94f38
commit
1437f2a5d6
@ -355,7 +355,7 @@ imx51_gpio_intr(void *arg)
|
||||
sc = arg;
|
||||
input = READ4(sc, IMX_GPIO_ISR_REG);
|
||||
value = input & READ4(sc, IMX_GPIO_IMR_REG);
|
||||
WRITE4(sc, IMX_GPIO_DR_REG, input);
|
||||
WRITE4(sc, IMX_GPIO_ISR_REG, input);
|
||||
|
||||
if (!value)
|
||||
goto intr_done;
|
||||
|
Loading…
x
Reference in New Issue
Block a user