]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: shmobile: r8a7791: Wait for status on all MSTP clocks
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Wed, 8 Jan 2014 07:54:46 +0000 (08:54 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 4 Feb 2014 01:24:59 +0000 (10:24 +0900)
commitdd6fc76d2f61e732a14f3592bdd83c2c0b7d2dcc
tree7f1f642e0acada51736bd55085bee35cf4c1f377
parent5f3fbe63b39923294cfd4bce84ab16948467d30f
ARM: shmobile: r8a7791: Wait for status on all MSTP clocks

When enabling a module clock by clearing its bit in the MSTP control
register, the CPG requires waiting for the status register to signal
that the clock has started. Failure to do so will result in returning
from the clk_enable() call with the clock potentially still disabled,
leading to various race conditions and difficult to debug errors.

Enable status wait for all MSTP clocks on the r8a7791.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/clock-r8a7791.c