ARM: tegra: clock: Add read fence in delayed writes
authorAlex Frid <afrid@nvidia.com>
Thu, 5 Sep 2013 03:02:35 +0000 (20:02 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Tue, 17 Sep 2013 00:41:11 +0000 (17:41 -0700)
commit9f5e2537e3e9cd13634730929b959facbc771012
tree0b200ec1635b94e004cd15cde6e87b9ad38c1d93
parent5e0106a557c9526c16dbfbdffc792aba7f8823a4
ARM: tegra: clock: Add read fence in delayed writes

Added explicit read fence after clock register writes that include
propagation delay. This is necessary on Tegra11 and Tegra12 platforms
where udelay implementation is based on CPU arch timers (on platforms
that use tegra microsecond timer for udelay, timer count read serves
as a fence).

Change-Id: I56a9af1bfa5ae7a9f6f51d129708eaa5cbd8ee27
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/270481
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
arch/arm/mach-tegra/tegra11_clocks.c
arch/arm/mach-tegra/tegra12_clocks.c