From: =?utf-8?Q?Beno=C3=AEt_Th=C3=A9baudeau?= Date: Mon, 30 Sep 2013 13:08:04 +0200 (CEST) Subject: [U-Boot] [PATCH] gpio: mxc_gpio: Fix gpio_get_value() when the GPIO is an output In-Reply-To: References: <1380388964-26009-1-git-send-email-festevam@gmail.com> <213642590.2248385.1380482724389.JavaMail.zimbra@advansee.com> <1056648236.2248666.1380483930698.JavaMail.zimbra@advansee.com> Message-ID: <1327874553.2263090.1380539283991.JavaMail.zimbra@advansee.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Fabio, On Monday, September 30, 2013 3:32:39 AM, Fabio Estevam wrote: > On Sun, Sep 29, 2013 at 7:24 PM, Otavio Salvador > wrote: > > > I sent the patch to fix this adding the flag to the GPIO pins. > > > > I tested it and it works fine indeed. The patch is awaiting for > > approval as it is a little big. The commitlog is below for reference: > > > > mx6: Add IOMUX_CONFIG_SION flag to all GPIO pins > > Ok, this fixes mx6, but other i.mx SoC would need the same fix as well, > right? Maybe not. The requirement for SION setting for the various pin functions differs among i.MXs. E.g., SION is required for I?C on some i.MX (51 I think), but not for all. So this should be checked for GPIO as well on a per-i.MX basis. [...] Best regards, Beno?t