Re: [PATCH 3/3] pinctrl / gpio: Introduce .set_config() callback for GPIO chips

From: Linus Walleij
Date: Fri Jan 20 2017 - 04:50:35 EST


On Fri, Jan 20, 2017 at 10:24 AM, Neil Armstrong
<narmstrong@xxxxxxxxxxxx> wrote:

>>> - return ret;
>>> + return pinctrl_gpio_set_config(chip->base + offset, config);
>>> }
>>
>> This is the beauty of it all..
>
> It would be even cooler it this becomes a generic helper !

It does, with this series we can push debounce and open source/drain
back to the pinctrl back-end.

Then the road is open to push any config this way, which I think will
also be needed for userspace GPIO to set up not just this but also
pull-ups etc. But we will add that step by step.

This provides a piece of much-needed infrastructure for this.

Yours,
Linus Walleij