ARM: shmobile: wait for MSTP clock status to toggle, when enabling it
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Sat, 14 Dec 2013 15:23:51 +0000 (16:23 +0100)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:12:55 +0000 (11:12 +0100)
commit7a84a6374a6097f1f73a7d10c8f5e86d96a7a08d
tree52d633454dedc794e9500fa871ac485b51bc4ed1
parent4b0649c3d73acc4f40dcd9a6dd503f041672f385
ARM: shmobile: wait for MSTP clock status to toggle, when enabling it

On r-/sh-mobile SoCs MSTP clocks are used by the runtime PM to dynamically
enable and disable peripheral clocks. To make sure the clock has really
started we have to read back its status register until it confirms success.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit a028c6da34d434e35ba8322568c756ea97ff3c18)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/sh/clk/cpg.c
include/linux/sh_clk.h