pinctrl: cherryview: Serialize all register access
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 3 Aug 2015 09:46:38 +0000 (12:46 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Aug 2015 11:20:02 +0000 (13:20 +0200)
commit4585b000ace6438d0b142746baab658056b223d9
tree6b2337f12c2c1028386f8280a4db31b2c24084e7
parent39b87ad166114b842159e5384a948b168cfa61d8
pinctrl: cherryview: Serialize all register access

There is a hardware issue in Intel Braswell/Cherryview where concurrent
GPIO register access might results reads of 0xffffffff and writes might get
dropped.

Prevent this from happening by taking the serializing lock for all places
where it is possible that more than one thread might be accessing the
hardware concurrently.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-cherryview.c