]> git.baikalelectronics.ru Git - 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)
commitff9757995e24047c281a58805dd5533478827d26
tree03308ef2873f09f6e45e491e0d1e788fa4e99e0e
parenteb9377cf74c2aa6dcbef0555d8bb52aefdea6f04
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