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)
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

Simple merge
Simple merge