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@verge.net.au>
Fri, 5 Dec 2014 00:21:04 +0000 (09:21 +0900)
commit50ff69b6f6824c35fd01b2075798411df558de74
treebf9a2379b918593c61b62300021319a162d74b81
parent5b7c483cd4d51bd5567f0a5957c2ea585a6d06c9
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