From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1O5Ddj-0004No-EJ for barebox@lists.infradead.org; Fri, 23 Apr 2010 07:49:32 +0000 Date: Fri, 23 Apr 2010 09:49:29 +0200 From: Sascha Hauer Message-ID: <20100423074929.GZ7882@pengutronix.de> References: <20100422111644.GI7882@pengutronix.de> <1272003760-15646-1-git-send-email-w.sang@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1272003760-15646-1-git-send-email-w.sang@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 2/7] imx/gpio: make gpio_get_value actually work To: Wolfram Sang Cc: barebox@lists.infradead.org On Fri, Apr 23, 2010 at 08:22:40AM +0200, Wolfram Sang wrote: > From: Uwe Kleine-K=F6nig > = > The value read at the pin is provided by Sample Status Register, not the > Data Register. > = > Signed-off-by: Uwe Kleine-K=F6nig > Signed-off-by: Wolfram Sang ok, applied to -next Sascha > --- > arch/arm/mach-imx/gpio.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > = > diff --git a/arch/arm/mach-imx/gpio.c b/arch/arm/mach-imx/gpio.c > index 6157bd1..c6a59a6 100644 > --- a/arch/arm/mach-imx/gpio.c > +++ b/arch/arm/mach-imx/gpio.c > @@ -121,7 +121,7 @@ int gpio_get_value(unsigned gpio) > if (!base) > return -EINVAL; > = > - val =3D readl(base + GPIO_DR); > + val =3D readl(base + GPIO_PSR); > = > return val & (1 << shift) ? 1 : 0; > } > -- = > 1.7.0 > = > = > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- = Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox