]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f8ea7c9c16dc71feb29108ce392099d5a3cba47
treec35c6e13f7e4d114ccd178345c705f11a25acff0
parented4c0e42e851d5178cd0d1dc05de408325576e1c
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