preferable method for pinctrl driver
linus.walleij at linaro.org
Thu Mar 5 00:44:55 PST 2015
On Mon, Feb 9, 2015 at 11:41 AM, Oleksij Rempel <linux at rempel-privat.de> wrote:
> What is preferred method of handling gpio_request_enable in pinctrl
> driver? My hw provide GPIO as one of mux variants for each controlled
> pin. if i see it correctly, pin subsystem will not prevent using one
> pin as gpio and request for some other functionality? Should it be
> prevented by driver?
That is up to the driver writer. We have contemplated adding an
option to pinctrl_desc enforcing "exclusive GPIO" meaning that
GPIO and another mux setting cannot be used at the same time,
but noone got around to implementing that.
Some pin controllers can do GPIO and another function at the
same time, see illustrations and text in
More information about the linux-arm-kernel