pinctrl: cherryview: Serialize register access in suspend/resume
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 31 Oct 2016 14:57:32 +0000 (16:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Nov 2016 21:22:28 +0000 (22:22 +0100)
commit56211121c0825cd188caad05574fdc518d5cac6f
tree7c654bf874a248951e82c3c6b36faa19c0c88453
parent9999fe5df58773489b9564467b5c8cfb364e0b80
pinctrl: cherryview: Serialize register access in suspend/resume

If async suspend is enabled, the driver may access registers concurrently
with another instance which may fail because of the bug in Cherryview GPIO
hardware. Prevent this by taking the shared lock while accessing the
hardware in suspend and resume hooks.

Cc: stable@vger.kernel.org
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