From owner-svn-src-all@FreeBSD.ORG Thu Jul 10 14:06:18 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A8C00580; Thu, 10 Jul 2014 14:06:18 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 968D52E78; Thu, 10 Jul 2014 14:06:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6AE6Ihv008459; Thu, 10 Jul 2014 14:06:18 GMT (envelope-from ian@svn.freebsd.org) Received: (from ian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6AE6IPY008458; Thu, 10 Jul 2014 14:06:18 GMT (envelope-from ian@svn.freebsd.org) Message-Id: <201407101406.s6AE6IPY008458@svn.freebsd.org> From: Ian Lepore Date: Thu, 10 Jul 2014 14:06:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268495 - head/sys/arm/freescale/imx X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2014 14:06:18 -0000 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;