]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sunxi: Add spinlocks
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 4 Aug 2013 10:38:48 +0000 (12:38 +0200)
committerLinus Walleij <linus.walleij@stericsson.com>
Wed, 7 Aug 2013 19:57:17 +0000 (21:57 +0200)
commita362b77125ea3888707f71c49241451b51a2fbca
treeb3813fe68073ac24812489252faf3c93fd508deb
parent1720d3ab12f4eb74eb0f1461071a69409efc419d
pinctrl: sunxi: Add spinlocks

The current code use no locking at all, which is obviously not that
great and can lead to concurrency issues, especially with the newer SMP
SoCs from Allwinner.

Add some locking where it's needed.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
drivers/pinctrl/pinctrl-sunxi.c
drivers/pinctrl/pinctrl-sunxi.h