Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-29 Thread Ludovic Desroches
On Fri, Jan 26, 2018 at 07:13:32PM +0200, Andy Shevchenko wrote: > On Fri, Jan 26, 2018 at 9:32 AM, Ludovic Desroches > wrote: > > On Wed, Jan 24, 2018 at 05:42:15PM +0200, Andy Shevchenko wrote: > >> On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches > >>

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-29 Thread Ludovic Desroches
On Fri, Jan 26, 2018 at 07:13:32PM +0200, Andy Shevchenko wrote: > On Fri, Jan 26, 2018 at 9:32 AM, Ludovic Desroches > wrote: > > On Wed, Jan 24, 2018 at 05:42:15PM +0200, Andy Shevchenko wrote: > >> On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches > >> wrote: > >> > On Thu, Jan 18, 2018 at

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-26 Thread Andy Shevchenko
On Fri, Jan 26, 2018 at 9:32 AM, Ludovic Desroches wrote: > On Wed, Jan 24, 2018 at 05:42:15PM +0200, Andy Shevchenko wrote: >> On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches >> wrote: >> > On Thu, Jan 18, 2018 at 04:22:28PM

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-26 Thread Andy Shevchenko
On Fri, Jan 26, 2018 at 9:32 AM, Ludovic Desroches wrote: > On Wed, Jan 24, 2018 at 05:42:15PM +0200, Andy Shevchenko wrote: >> On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches >> wrote: >> > On Thu, Jan 18, 2018 at 04:22:28PM +0100, Ludovic Desroches wrote: >> >> On Thu, Jan 18, 2018 at

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-25 Thread Ludovic Desroches
On Wed, Jan 24, 2018 at 05:42:15PM +0200, Andy Shevchenko wrote: > On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches > wrote: > > On Thu, Jan 18, 2018 at 04:22:28PM +0100, Ludovic Desroches wrote: > >> On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-25 Thread Ludovic Desroches
On Wed, Jan 24, 2018 at 05:42:15PM +0200, Andy Shevchenko wrote: > On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches > wrote: > > On Thu, Jan 18, 2018 at 04:22:28PM +0100, Ludovic Desroches wrote: > >> On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: > >> > On Mon, Jan 15, 2018 at

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-24 Thread Andy Shevchenko
On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches wrote: > On Thu, Jan 18, 2018 at 04:22:28PM +0100, Ludovic Desroches wrote: >> On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: >> > On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches >> >

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-24 Thread Andy Shevchenko
On Wed, Jan 24, 2018 at 3:07 PM, Ludovic Desroches wrote: > On Thu, Jan 18, 2018 at 04:22:28PM +0100, Ludovic Desroches wrote: >> On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: >> > On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches >> > wrote: >> > I think we need to think over

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-24 Thread Ludovic Desroches
On Thu, Jan 18, 2018 at 04:22:28PM +0100, Ludovic Desroches wrote: > On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: > > On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches > > wrote: > > > > > It can be useful for the pinmuxing layer to know which

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-24 Thread Ludovic Desroches
On Thu, Jan 18, 2018 at 04:22:28PM +0100, Ludovic Desroches wrote: > On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: > > On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches > > wrote: > > > > > It can be useful for the pinmuxing layer to know which device is > > > requesting a

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-18 Thread Ludovic Desroches
On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: > On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches > wrote: > > > It can be useful for the pinmuxing layer to know which device is > > requesting a GPIO. Add a consumer variant for gpiod_request to

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-18 Thread Ludovic Desroches
On Thu, Jan 18, 2018 at 11:30:00AM +0100, Linus Walleij wrote: > On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches > wrote: > > > It can be useful for the pinmuxing layer to know which device is > > requesting a GPIO. Add a consumer variant for gpiod_request to > > reach this goal. > > > > GPIO

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-18 Thread Linus Walleij
On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches wrote: > It can be useful for the pinmuxing layer to know which device is > requesting a GPIO. Add a consumer variant for gpiod_request to > reach this goal. > > GPIO chips managed by pin controllers should

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-18 Thread Linus Walleij
On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches wrote: > It can be useful for the pinmuxing layer to know which device is > requesting a GPIO. Add a consumer variant for gpiod_request to > reach this goal. > > GPIO chips managed by pin controllers should provide the new > request_consumer

[RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-15 Thread Ludovic Desroches
It can be useful for the pinmuxing layer to know which device is requesting a GPIO. Add a consumer variant for gpiod_request to reach this goal. GPIO chips managed by pin controllers should provide the new request_consumer operation. They can rely on gpiochip_generic_request_consumer instead of

[RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-15 Thread Ludovic Desroches
It can be useful for the pinmuxing layer to know which device is requesting a GPIO. Add a consumer variant for gpiod_request to reach this goal. GPIO chips managed by pin controllers should provide the new request_consumer operation. They can rely on gpiochip_generic_request_consumer instead of

[RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-15 Thread Ludovic Desroches
It can be useful for the pinmuxing layer to know which device is requesting a GPIO. Add a consumer variant for gpiod_request to reach this goal. GPIO chips managed by pin controllers should provide the new request_consumer operation. They can rely on gpiochip_generic_request_consumer instead of

[RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-15 Thread Ludovic Desroches
It can be useful for the pinmuxing layer to know which device is requesting a GPIO. Add a consumer variant for gpiod_request to reach this goal. GPIO chips managed by pin controllers should provide the new request_consumer operation. They can rely on gpiochip_generic_request_consumer instead of