]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
pinctrl: st: avoid multiple mutex lock
authorFrancesco VIRLINZI <francesco.virlinzi@st.com>
Mon, 5 Jan 2015 10:04:13 +0000 (11:04 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Jan 2015 09:43:41 +0000 (10:43 +0100)
commit96d16c3088a924a44175d2923cc0eafa0d8bbecc
tree03308ef2873f09f6e45e491e0d1e788fa4e99e0e
parentf2dd028c2632d107c26b1daed543d9efd4f0decd
pinctrl: st: avoid multiple mutex lock

Using the sysfs inteface to inspect the pins configuration
the system can walk around a path which acquires the same
mutex twice.

On STiH407 platform, for example :
cat /sys/kernel/debug/pinctrl/920f080.pin-controller-front0/pinconf-pins
hangs the kernel and never returns.

With this patch the mutex is temporary freed.

Signed-off-by: Francesco Virlinzi <francesco.virlinzi@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-st.c