summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHiroshi Doyu <hdoyu@nvidia.com>2012-11-22 15:17:46 +0200
committerSimone Willett <swillett@nvidia.com>2012-11-26 16:11:55 -0800
commitde7b6512661b2ad8219371344ef6ca86bfca972e (patch)
treecc9ae259e51d0f253b5f4e6ce92fb360d2dceb3d /drivers/crypto
parent07f0f0f8392ad521a3a9a092a8c8d513e0c99ae2 (diff)
crypto: tegra-se: to_phys(ctx_save_buf) in PMC scratch register
Find physical address of ctx_save_buf via vmalloc_to_page(), and set it in PMC scratch register. Bug 1162056 Change-Id: I8ab16fd1381954883f3b51a30e958b1f343dd4e8 Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/165732 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/tegra-se.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/tegra-se.c b/drivers/crypto/tegra-se.c
index e4b51feab2ce..93ab2c0569bd 100644
--- a/drivers/crypto/tegra-se.c
+++ b/drivers/crypto/tegra-se.c
@@ -3102,7 +3102,7 @@ static int tegra_se_suspend(struct device *dev)
}
/* Write lp context buffer address into PMC scratch register */
- writel(se_dev->ctx_save_buf_adr,
+ writel(page_to_phys(vmalloc_to_page(se_dev->ctx_save_buf)),
se_dev->pmc_io_reg + PMC_SCRATCH43_REG_OFFSET);
/* Saves SRK in secure scratch */