gpio-mxc gpio get always returns 0 for outputs for IMX6

Fabio Estevam festevam at gmail.com
Sun Jul 13 20:01:50 PDT 2014


On Fri, Jul 11, 2014 at 1:02 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> On Fri, Jul 11, 2014 at 08:34:19AM -0700, Tim Harvey wrote:
>> I've noticed that for IMX6 the gpio-mxc gpio driver always returns 0
>> for gpio's configured as outputs regardless of if they are outputing
>> high or low.
>
> There's a different way which this can be solved - set the SION but on
> your GPIOs.  You will then be able to read back the state of the
> output pin.

Yes, setting the SION bit is the correct way to solve this.



More information about the linux-arm-kernel mailing list