]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea5211bae2eda5cdabe1ba5f22ed00026afec8e6
tree7c654bf874a248951e82c3c6b36faa19c0c88453
parentb7bdbbc909dadf374f36c74ccd3626020d2652c6
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