pinctrl: baytrail: Serialize all register access
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 4 Aug 2015 12:03:14 +0000 (15:03 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Aug 2015 12:26:14 +0000 (14:26 +0200)
commit39ce8150a079e3ae6ed9abf26d7918a558ef7c19
treefea01da763018049a4d3cfeefcbea4958e2550ef
parent5ab49db8e007c4479be1a682ea64d9b562aa4880
pinctrl: baytrail: Serialize all register access

There is a hardware issue in Intel Baytrail where concurrent GPIO register
access might result reads of 0xffffffff and writes might get dropped
completely.

Prevent this from happening by taking the serializing lock in 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-baytrail.c