Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-22 Thread Linus Walleij
On Thu, May 11, 2017 at 10:02 PM, Nikita Yushchenko wrote: > When pinctrl device registers, it automatically claims hogs, that is, > maps that pinctrl device serves for itself. > > It is possible that in addition to SoC's pinctrl device, other pinctrl > devices

Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-22 Thread Linus Walleij
On Thu, May 11, 2017 at 10:02 PM, Nikita Yushchenko wrote: > When pinctrl device registers, it automatically claims hogs, that is, > maps that pinctrl device serves for itself. > > It is possible that in addition to SoC's pinctrl device, other pinctrl > devices get registered. E.g. some gpio

Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-12 Thread Tony Lindgren
* Nikita Yushchenko [170512 01:22]: > >> + /* > >> + * If pctldev is not null, we are claiming hog for it, > >> + * that means, setting that is served by pctldev by itself. > >> + * > >> + * Thus we must skip map

Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-12 Thread Tony Lindgren
* Nikita Yushchenko [170512 01:22]: > >> + /* > >> + * If pctldev is not null, we are claiming hog for it, > >> + * that means, setting that is served by pctldev by itself. > >> + * > >> + * Thus we must skip map that is for this device but is

Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-12 Thread Nikita Yushchenko
>> +/* >> + * If pctldev is not null, we are claiming hog for it, >> + * that means, setting that is served by pctldev by itself. >> + * >> + * Thus we must skip map that is for this device but is served >> + * by other

Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-12 Thread Nikita Yushchenko
>> +/* >> + * If pctldev is not null, we are claiming hog for it, >> + * that means, setting that is served by pctldev by itself. >> + * >> + * Thus we must skip map that is for this device but is served >> + * by other

Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-11 Thread Tony Lindgren
* Nikita Yushchenko [170511 13:05]: > When pinctrl device registers, it automatically claims hogs, that is, > maps that pinctrl device serves for itself. > > It is possible that in addition to SoC's pinctrl device, other pinctrl > devices get registered. E.g.

Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-11 Thread Tony Lindgren
* Nikita Yushchenko [170511 13:05]: > When pinctrl device registers, it automatically claims hogs, that is, > maps that pinctrl device serves for itself. > > It is possible that in addition to SoC's pinctrl device, other pinctrl > devices get registered. E.g. some gpio expander devies are

[PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-11 Thread Nikita Yushchenko
When pinctrl device registers, it automatically claims hogs, that is, maps that pinctrl device serves for itself. It is possible that in addition to SoC's pinctrl device, other pinctrl devices get registered. E.g. some gpio expander devies are registered as pinctrl devices. For such devices,

[PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-11 Thread Nikita Yushchenko
When pinctrl device registers, it automatically claims hogs, that is, maps that pinctrl device serves for itself. It is possible that in addition to SoC's pinctrl device, other pinctrl devices get registered. E.g. some gpio expander devies are registered as pinctrl devices. For such devices,