pinctrl: samsung: Protect bank registers with a spinlock
authorTomasz Figa <tomasz.figa@gmail.com>
Mon, 18 Mar 2013 21:31:50 +0000 (22:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 9 Apr 2013 07:36:42 +0000 (09:36 +0200)
commit198469504ac77ee04fe0f185bd668e1909aaba5f
treeba3530c083d886bbfe4ce4be55b1e10c197ad50f
parent6a7b3e970426f4bc2a8d52f81a4fda6595a9f052
pinctrl: samsung: Protect bank registers with a spinlock

Certain pin control registers can be accessed from different contexts,
i.e. pinctrl, gpio and irq functions. This makes the locking provided by
pin control core insufficient.

This patch adds necessary locking using a per bank spinlock as it was
done in the old Samsung GPIO driver.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-exynos.c
drivers/pinctrl/pinctrl-samsung.c
drivers/pinctrl/pinctrl-samsung.h