arm: tegra: poll CLAMP_STATUS
Prashant Gaikwad [Mon, 30 Sep 2013 12:10:24 +0000 (17:10 +0530)]
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>

arch/arm/mach-tegra/powergate.c

index 1b88a8f..f61de0a 100644 (file)
@@ -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");