Date: Thu, 10 Jul 2014 14:06:18 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268495 - head/sys/arm/freescale/imx Message-ID: <201407101406.s6AE6IPY008458@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407101406.s6AE6IPY008458>