summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/powergate.c
diff options
context:
space:
mode:
authorPrashant Gaikwad <pgaikwad@nvidia.com>2013-09-30 17:40:24 +0530
committerAjay Nandakumar <anandakumarm@nvidia.com>2013-10-03 19:17:55 +0530
commitf6738c545d0eb5186ba0887e278465e5aa6231c2 (patch)
treea46e84dc61682cff7e52940bcc1124aa9f9529a8 /arch/arm/mach-tegra/powergate.c
parent3b4f08be41f89a8bffdf41b181fc473c88c6f0f7 (diff)
arm: tegra: poll CLAMP_STATUS
In current implementation SW is polling REMOVE_CLAMPING_CMD to check the CLAMP remove status. As per the HW guys this register is write only and does no make sense polling it. Instead use CLAMP_STATUS for polling. Bug 1376147 Change-Id: I2f2a383da64731bd16ff8caeffbadc0b9ac9b3c0 Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/280267 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit 8c73a49068b7cde77d9e466f00a30fa1280c9c26) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/powergate.c')
-rw-r--r--arch/arm/mach-tegra/powergate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c
index 1b88a8f20a54..f61de0a82795 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -330,7 +330,7 @@ int tegra_powergate_remove_clamping(int id)
udelay(1);
contention_timeout--;
} while ((contention_timeout > 0)
- && (pmc_read(REMOVE_CLAMPING) & mask));
+ && (pmc_read(PWRGATE_CLAMP_STATUS) & mask));
WARN(contention_timeout <= 0, "Couldn't remove clamping");