]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Jul 2015 12:10:54 +0000 (14:10 +0200)
commit7d07816b3dcb7c62a2314c018993ffbbc42cf555
tree591c584b276cb7afd99f9d7de1957f94f1753f71
parent0d77ef01978d67c8139d7ecb17fbe81299dcb72d
ARM: shmobile: wait for MSTP clock status to toggle, when enabling it

commit a028c6da34d434e35ba8322568c756ea97ff3c18 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.com>
drivers/sh/clk/cpg.c
include/linux/sh_clk.h