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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:48:34 +0000 (10:48 +0100)
commit126d0a2fe87884a28c17f2f0af9e0c51592ac47f
tree577876fed9a50500e11ab50172742adad973537d
parentc45bfaa9211ef5936916503bdba639eae3761777
pinctrl: cherryview: Serialize register access in suspend/resume

commit 56211121c0825cd188caad05574fdc518d5cac6f upstream.

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.

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