svn commit: r268495 - head/sys/arm/freescale/imx

Ian Lepore ian at FreeBSD.org
Thu Jul 10 14:06:18 UTC 2014


Author: ian
Date: Thu Jul 10 14:06:18 2014
New Revision: 268495
URL: http://svnweb.freebsd.org/changeset/base/268495

Log:
  Pending interrupt status is cleared by writing to the ISR, not the data reg.
  
  MFC after:	1 week

Modified:
  head/sys/arm/freescale/imx/imx51_gpio.c

Modified: head/sys/arm/freescale/imx/imx51_gpio.c
==============================================================================
--- head/sys/arm/freescale/imx/imx51_gpio.c	Thu Jul 10 13:08:51 2014	(r268494)
+++ head/sys/arm/freescale/imx/imx51_gpio.c	Thu Jul 10 14:06:18 2014	(r268495)
@@ -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;


More information about the svn-src-head mailing list