summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-dwapb.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-07-11 13:06:26 +0300
committerLinus Walleij <linus.walleij@linaro.org>2016-07-22 15:30:42 +0200
commitfcce9f14f07db15650d84650293e2207f7dabbfa (patch)
tree362bbc0495f56ba9604dd93dc0d016eeb7515119 /drivers/gpio/gpio-dwapb.c
parentccf6fd6dcc86143002dec6c392d8aa41a6a46353 (diff)
downloadlinux-fcce9f14f07db15650d84650293e2207f7dabbfa.tar.bz2
gpio: merrifield: Protect irq_ack() and gpio_set() by lock
There is a potential race when two threads do the writes to the same register in parallel. Prevent out of order in such case by protecting I/O access by spin lock. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-dwapb.c')
0 files changed, 0 insertions, 0 deletions