Re: [PATCH 0/4] add support for bias pull-disable

Linus Walleij
2022-07-18T10:29:49Z

On Mon, Jul 18, 2022 at 9:50 AM Nuno Sá <noname.nuno@gmail.com> wrote:

> > right in that the character device is the only way to set this mode
> > ATM and. However I would like to see the first user added together
> > with the series because adding features nobody uses in the mainline
> > kernel tree is generally frowned upon and it's also not clear that
> > anyone actually wants to use it.
>
> Hmm, you mean something like a system's devicetree needing this flag?
> If so, I don't really have such a thing. I did all my testing on a rpi
> using overlays.

I would assume a driver with a .set_config() responding to this flag?

I actually think some gpio drivers using pin control as back-end
such as
drivers/pinctrl/bcm/pinctrl-bcm2835.c
will do this out-of-the box after this patch but I may be wrong.

To me supporting this on the Rpi driver is a good enough demonstrator
of the usefulness.

Yours,
Linus Walleij