Re: [RFC PATCH 3/5] gpio: gpiolib: Add chardev support for maintaining GPIO values on reset

2017-10-31 Thread Linus Walleij
On Thu, Oct 26, 2017 at 2:05 AM, Andrew Jeffery wrote: > I feel that taking this argument to its logical conclusion leads to > never exporting any GPIOs to userspace and doing everything in the > kernel. That is very much how I feel about things anyways. In a recent

Re: [RFC PATCH 3/5] gpio: gpiolib: Add chardev support for maintaining GPIO values on reset

2017-10-26 Thread Charles Keepax
On Thu, Oct 26, 2017 at 10:35:39AM +1030, Andrew Jeffery wrote: > On Wed, 2017-10-25 at 09:14 +0100, Charles Keepax wrote: > > On Fri, Oct 20, 2017 at 07:32:53PM +1030, Andrew Jeffery wrote: > > > On Fri, 2017-10-20 at 09:27 +0200, Linus Walleij wrote: > > > > I don't see it as helpful to give

Re: [RFC PATCH 3/5] gpio: gpiolib: Add chardev support for maintaining GPIO values on reset

2017-10-25 Thread Andrew Jeffery
On Wed, 2017-10-25 at 09:14 +0100, Charles Keepax wrote: > On Fri, Oct 20, 2017 at 07:32:53PM +1030, Andrew Jeffery wrote: > > On Fri, 2017-10-20 at 09:27 +0200, Linus Walleij wrote: > > > I don't see it as helpful to give userspace control over whether the line > > > is persistent or not. It is

Re: [RFC PATCH 3/5] gpio: gpiolib: Add chardev support for maintaining GPIO values on reset

2017-10-25 Thread Charles Keepax
On Fri, Oct 20, 2017 at 07:32:53PM +1030, Andrew Jeffery wrote: > On Fri, 2017-10-20 at 09:27 +0200, Linus Walleij wrote: > > I don't see it as helpful to give userspace control over whether the line > > is persistent or not. It is more reasonable to assume persistance for > > userspace use cases,

Re: [RFC PATCH 3/5] gpio: gpiolib: Add chardev support for maintaining GPIO values on reset

2017-10-20 Thread Andrew Jeffery
On Fri, 2017-10-20 at 09:27 +0200, Linus Walleij wrote: > I paged Bartosz and Michael on this, they are experts on the use cases for > the character device and their opinions are likely more valuable than mine. > > > On Fri, Oct 20, 2017 at 5:37 AM, Andrew Jeffery wrote: > >

Re: [RFC PATCH 3/5] gpio: gpiolib: Add chardev support for maintaining GPIO values on reset

2017-10-20 Thread Linus Walleij
I paged Bartosz and Michael on this, they are experts on the use cases for the character device and their opinions are likely more valuable than mine. On Fri, Oct 20, 2017 at 5:37 AM, Andrew Jeffery wrote: > Similar to devicetree support, add flags and mappings to expose reset >

[RFC PATCH 3/5] gpio: gpiolib: Add chardev support for maintaining GPIO values on reset

2017-10-19 Thread Andrew Jeffery
Similar to devicetree support, add flags and mappings to expose reset tolerance configuration through the chardev interface. Signed-off-by: Andrew Jeffery --- drivers/gpio/gpiolib.c| 14 +- include/uapi/linux/gpio.h | 11 ++- 2 files changed, 19