Re: [RFC/PATCH 4/5] gpiolib: add support for fetching descriptors from static properties

2018-09-19 Thread Mika Westerberg
On Tue, Sep 18, 2018 at 10:04:18AM -0700, Dmitry Torokhov wrote: > I am not sure how that would work, as there are multiple properties in > that child array, so we can't simply take the first entry or assume that > all entries describe GPIOs. Here is the fuller example: > > static const struct pro

Re: [RFC/PATCH 4/5] gpiolib: add support for fetching descriptors from static properties

2018-09-18 Thread Dmitry Torokhov
Hi Mika, On Tue, Sep 18, 2018 at 12:02:19PM +0300, Mika Westerberg wrote: > Hi, > > On Mon, Sep 17, 2018 at 11:16:02AM -0700, Dmitry Torokhov wrote: > > Now that static device properties understand notion of child nodes, let's > > teach gpiolib to tie such children and machine GPIO descriptor tab

Re: [RFC/PATCH 4/5] gpiolib: add support for fetching descriptors from static properties

2018-09-18 Thread Mika Westerberg
Hi, On Mon, Sep 17, 2018 at 11:16:02AM -0700, Dmitry Torokhov wrote: > Now that static device properties understand notion of child nodes, let's > teach gpiolib to tie such children and machine GPIO descriptor tables. > We will continue using a single table for entire device, but instead of > usin

[RFC/PATCH 4/5] gpiolib: add support for fetching descriptors from static properties

2018-09-17 Thread Dmitry Torokhov
Now that static device properties understand notion of child nodes, let's teach gpiolib to tie such children and machine GPIO descriptor tables. We will continue using a single table for entire device, but instead of using connection ID as a lookup key in the GPIO descriptor table directly, we will