]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
pinctrl: stm32: add possibility to configure pins individually
authorAlexandre Torgue <alexandre.torgue@st.com>
Mon, 15 Jun 2020 12:59:51 +0000 (14:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 20 Jun 2020 21:08:00 +0000 (23:08 +0200)
commitb1a05ba9ae8cf6592e1d1f3e7b03bf8e5863f75f
tree7e00862824d2184b7197f629276d992b3d90bc85
parentd9665bb82269f0f2bc18b73f074754e452bb3767
pinctrl: stm32: add possibility to configure pins individually

Adds the possibility to configure a single pin through the gpiolib (i.e:
to set PULL_UP/PULL_DOWN config).
Mutex behavior is slightly changed to avoid a deadlock when pin_config_set
is called (in this case pctldev->mutex is already taken).

Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Link: https://lore.kernel.org/r/20200615125951.28008-3-alexandre.torgue@st.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c