summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/arb_sema.c
diff options
context:
space:
mode:
authorSanjay Singh Rawat <srawat@nvidia.com>2011-04-28 18:55:57 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:42:35 -0800
commit5752829b9dcdc3e258003cab9cd15442d97e08ac (patch)
tree9fa04506781edfd5f0faee0a700fa7a7eb9dddd1 /arch/arm/mach-tegra/arb_sema.c
parent416cc79705727bb1d4db6e9d1158937f4b357fd2 (diff)
crypto: tegra-aes: dual core support
* add bsea engine support for encryption and decryption * add arbitration semaphore id for bsea Bug 803932 Original change: http://git-master/r/#change,29672 (cherry picked from commit 0008cdb0f38d0cd0c074671fc067c4321f340b06) Original-Change-Id: I59fcaab29c47a8b42e7470b30486851cfe90848f Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/30190 Tested-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rb63b593aa4fe4b4d4f3607ac9471ae7e7372407a
Diffstat (limited to 'arch/arm/mach-tegra/arb_sema.c')
-rw-r--r--arch/arm/mach-tegra/arb_sema.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/arb_sema.c b/arch/arm/mach-tegra/arb_sema.c
index 55af15e935f2..eecdee5967c8 100644
--- a/arch/arm/mach-tegra/arb_sema.c
+++ b/arch/arm/mach-tegra/arb_sema.c
@@ -36,6 +36,7 @@
#define ARB_GRANT_STATUS 0x0
#define ARB_GRANT_REQUEST 0x4
#define ARB_GRANT_RELEASE 0x8
+#define ARB_GRANT_PENDING 0xC
struct tegra_arb_dev {
void __iomem *sema_base;
@@ -117,7 +118,7 @@ int tegra_arb_mutex_lock_timeout(enum tegra_arb_module lock, int msecs)
request_arb_sem(lock);
ret = wait_for_completion_timeout(&arb->arb_gnt_complete[lock], msecs_to_jiffies(msecs));
if (ret == 0) {
- pr_err("timed out.\n");
+ pr_err("timed out. pending:0x%x\n", arb_sema_read(ARB_GRANT_PENDING));
cancel_arb_sem(lock);
mutex_unlock(&arb->mutexes[lock]);
return -ETIMEDOUT;