diff options
author | Kumar Sanghvi <kumar.sanghvi@stericsson.com> | 2010-05-31 15:44:57 +0530 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2010-09-02 22:45:30 -0600 |
commit | 306226edac0248ac35eccea0a0e6d37c78a81b90 (patch) | |
tree | ec94beaafe3c5b92a00f96305ccc8f2fe10b14fe /arch/arm/mach-ux500 | |
parent | 7fb4b4344dcbfd8115bcf075c7f07c748d2a7ef1 (diff) |
u8500-prcmu: Avoid setting PRCM_HOSTACCESS_REQ if already set
Avoids setting the PRCM_HOSTACCESS_REQ if alredy set. Setting the bit
again, when already set, will not give HOST_PORT_ACK interrupt from
prcmu-fw.
ST-Ericsson ID: ER262435
Signed-off-by: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/534
Reviewed-by: Biju C DAS <biju.das@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Change-Id: I3f484cf5a04f141767d218e1f8a15f03800263b6
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2380
Diffstat (limited to 'arch/arm/mach-ux500')
-rwxr-xr-x | arch/arm/mach-ux500/prcmu-fw.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/prcmu-fw.c b/arch/arm/mach-ux500/prcmu-fw.c index 0c6f50f8b79..ed8274a5678 100755 --- a/arch/arm/mach-ux500/prcmu-fw.c +++ b/arch/arm/mach-ux500/prcmu-fw.c @@ -1102,6 +1102,16 @@ int prcmu_ac_wake_req() spin_lock_irqsave(&ac_wake_lock, flags); prcm_hostaccess = readl(PRCM_HOSTACCESS_REQ); + + /* + * check if the prcm_hostaccess_req is already high. + * If yes, then simply return + */ + if (prcm_hostaccess & ARM_WAKEUP_MODEM) { + spin_unlock_irqrestore(&ac_wake_lock, flags); + return 0; + } + prcm_hostaccess = prcm_hostaccess | ARM_WAKEUP_MODEM; /* write to the PRCMU host_port_req register */ |