commit | fcce9f14f07db15650d84650293e2207f7dabbfa | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Mon Jul 11 13:06:26 2016 +0300 |
committer | Linus Walleij <linus.walleij@linaro.org> | Fri Jul 22 15:30:42 2016 +0200 |
tree | 362bbc0495f56ba9604dd93dc0d016eeb7515119 | |
parent | ccf6fd6dcc86143002dec6c392d8aa41a6a46353 [diff] |
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>