Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-21 Thread Linus Walleij
On Tue, Jan 21, 2014 at 3:55 AM, Alexandre Courbot wrote: > On Sat, Jan 18, 2014 at 7:43 AM, Linus Walleij > wrote: >> 1. Today this OPEN_DRAIN flag is not even passed down to >> the driver so how could it say anything about it :-( it's a pure gpiolib >> internal flag. We don't know if the

Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-21 Thread Linus Walleij
On Tue, Jan 21, 2014 at 3:55 AM, Alexandre Courbot gnu...@gmail.com wrote: On Sat, Jan 18, 2014 at 7:43 AM, Linus Walleij linus.wall...@linaro.org wrote: 1. Today this OPEN_DRAIN flag is not even passed down to the driver so how could it say anything about it :-( it's a pure gpiolib

Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-20 Thread Lothar Waßmann
Hi, Alexandre Courbot wrote: > On Sat, Jan 18, 2014 at 7:43 AM, Linus Walleij > wrote: > > On Fri, Jan 17, 2014 at 9:53 PM, Russell King - ARM Linux > > wrote: > >> On Fri, Jan 17, 2014 at 01:42:44PM -0700, Stephen Warren wrote: > > [...] > > If the OPEN_DRAIN flag is set on that descriptor we

Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-20 Thread Alexandre Courbot
On Sat, Jan 18, 2014 at 7:43 AM, Linus Walleij wrote: > On Fri, Jan 17, 2014 at 9:53 PM, Russell King - ARM Linux > wrote: >> On Fri, Jan 17, 2014 at 01:42:44PM -0700, Stephen Warren wrote: > >>> I believe you want gpio_get_value() to return either the driven or >>> actual pin value where it can

Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-20 Thread Alexandre Courbot
On Sat, Jan 18, 2014 at 7:43 AM, Linus Walleij linus.wall...@linaro.org wrote: On Fri, Jan 17, 2014 at 9:53 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Fri, Jan 17, 2014 at 01:42:44PM -0700, Stephen Warren wrote: I believe you want gpio_get_value() to return either the

Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-20 Thread Lothar Waßmann
Hi, Alexandre Courbot wrote: On Sat, Jan 18, 2014 at 7:43 AM, Linus Walleij linus.wall...@linaro.org wrote: On Fri, Jan 17, 2014 at 9:53 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Fri, Jan 17, 2014 at 01:42:44PM -0700, Stephen Warren wrote: [...] If the OPEN_DRAIN

Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-17 Thread Linus Walleij
On Fri, Jan 17, 2014 at 9:53 PM, Russell King - ARM Linux wrote: > On Fri, Jan 17, 2014 at 01:42:44PM -0700, Stephen Warren wrote: >> I believe you want gpio_get_value() to return either the driven or >> actual pin value where it can on the current HW, but just e.g. hard-code >> 0 on other HW.

Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-17 Thread Linus Walleij
On Fri, Jan 17, 2014 at 9:53 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Fri, Jan 17, 2014 at 01:42:44PM -0700, Stephen Warren wrote: I believe you want gpio_get_value() to return either the driven or actual pin value where it can on the current HW, but just e.g. hard-code 0