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)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 4 Feb 2014 01:22:39 +0000 (10:22 +0900)
commita028c6da34d434e35ba8322568c756ea97ff3c18
treec35c6e13f7e4d114ccd178345c705f11a25acff0
parent38dbfb59d1175ef458d006556061adeaa8751b72
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>
drivers/sh/clk/cpg.c
include/linux/sh_clk.h