ARM: shmobile: r8a7779: Wait for status on selected MSTP clocks
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 14 Dec 2013 15:23:52 +0000 (16:23 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 4 Feb 2014 01:22:52 +0000 (10:22 +0900)
commit017410f686b8d9928ce30e4eb146175ea672f4c9
tree2ff8c813fdb449bc8d0f109e1c9dfeb831af3027
parenta028c6da34d434e35ba8322568c756ea97ff3c18
ARM: shmobile: r8a7779: Wait for status on selected MSTP clocks

When enabling some of the module clocks by clearing stop bits in the
MSTP control registers, the CPG requires waiting for the status
registers to signal that the clocks have 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 the r8a7779 MSTP clocks that report their
status.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/clock-r8a7779.c