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)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:13:43 +0000 (11:13 +0100)
commit7ea482c2bdd78995ed3e9869e04ff784cef91f8a
tree80edcaaa436c21c9924448ab4d8d90d293abef1f
parentfc4769e3a427ee4425be333e1bbb21e2f8b207eb
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