Revert "i2c: rcar: remove spinlock"
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 23 Aug 2014 20:44:09 +0000 (00:44 +0400)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:16:20 +0000 (11:16 +0100)
commitcddffe783c890836910950d6a3d59ebc42167fbd
tree1b9e55862f152d3eb301d5917ee0b8159105ee7b
parent5b2ee54abbebd43d85e9f7629a9e6e738feac4e9
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>
(cherry picked from commit 91bfe2989af02e709ca01ccf518c4fbda3efc70f)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/i2c/busses/i2c-rcar.c