pinctrl: exynos: Add spinlocks to irq_mask and irq_unmask
authorDoug Anderson <dianders@chromium.org>
Wed, 12 Jun 2013 17:33:17 +0000 (10:33 -0700)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:25:41 +0000 (07:25 +0200)
commitcbd4d5540276bd4878f1063448a831e67c64ffd2
tree842f695e6c3dc6b551414827453378e533a64297
parent5430db7343a1afa4c306165d34aa3634b14b42da
pinctrl: exynos: Add spinlocks to irq_mask and irq_unmask

The patch:
  1984695 pinctrl: samsung: Protect bank registers with a spinlock

...added spinlocks to protect many accesses.  However, the irq_mask
and irq_unmask functions still do an unprotected read/modify/write.
Add the spinlock there.

Change-Id: I892cfcd82368466184b99eab75d2bc7882674211
Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-exynos.c