summaryrefslogtreecommitdiffstats
path: root/sys/arm/freescale
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-07-10 14:06:18 +0000
committerian <ian@FreeBSD.org>2014-07-10 14:06:18 +0000
commit1437f2a5d681582a801fdf841337a3f4cb46c7bd (patch)
treed8e06a92a4a16497013c4e1937c9efd9048123f1 /sys/arm/freescale
parent437aa94f38683dc90e5e59765006acf46d7aabfc (diff)
downloadFreeBSD-src-1437f2a5d681582a801fdf841337a3f4cb46c7bd.zip
FreeBSD-src-1437f2a5d681582a801fdf841337a3f4cb46c7bd.tar.gz
Pending interrupt status is cleared by writing to the ISR, not the data reg.
MFC after: 1 week
Diffstat (limited to 'sys/arm/freescale')
-rw-r--r--sys/arm/freescale/imx/imx51_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/freescale/imx/imx51_gpio.c b/sys/arm/freescale/imx/imx51_gpio.c
index 1c1eed1..8c43527 100644
--- a/sys/arm/freescale/imx/imx51_gpio.c
+++ b/sys/arm/freescale/imx/imx51_gpio.c
@@ -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;
OpenPOWER on IntegriCloud