Revert "i2c: rcar: remove spinlock"
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 23 Aug 2014 20:44:09 +0000 (00:44 +0400)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 4 Sep 2014 17:59:42 +0000 (19:59 +0200)
commit91bfe2989af02e709ca01ccf518c4fbda3efc70f
treea4ebc7cde4b09aaea773dba793062cee10fefe80
parent75b81f339c6af43f6f4a1b3eabe0603321dade65
Revert "i2c: rcar: remove spinlock"

This reverts commit 150b8be3cda54412ad7b54f5392b513b25c0aaa7.

The I2C core's per-adapter locks can't protect from IRQs, so the driver still
needs a spinlock to protect the register accesses.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: stable@vger.kernel.org # 3.16+
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c