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@verge.net.au>
Fri, 5 Dec 2014 00:21:56 +0000 (09:21 +0900)
commitba1c72b518dee58ca5dda7602c2d0e39f52fa99f
tree0d5b443d0d41a11ed4732bc3206c6036809aafd4
parent3023ce089567b52ed66609febcd981e679ab8149
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>
(cherry picked from commit 017410f686b8d9928ce30e4eb146175ea672f4c9)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/clock-r8a7779.c