summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorVictoria Milhoan <vicki.milhoan@freescale.com>2014-11-07 10:48:32 -0700
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit8723bbe1c176f62547e9b8234b81e10e43a30a4c (patch)
tree42a6b9c6bd22f02483e27de418a251625ed014f8 /drivers/crypto
parenta1d02d950e764bfe15a99f7deafe4ecb4aed3673 (diff)
MLK-9937 Use job ring 0 for secure memory access
By default, job ring 0 is the owner of the Secure Memory area within CAAM. This patch modifies the Secure Memory module to use job ring 0 for all accesses. Signed-off-by: Victoria Milhoan <vicki.milhoan@freescale.com> (cherry picked from commit bb447bfb241d34492365bf881257b1a742a29c02) Signed-off-by: Dan Douglass <dan.douglass@freescale.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/sm_store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/sm_store.c b/drivers/crypto/caam/sm_store.c
index 9541a0d2b008..5562b74ad558 100644
--- a/drivers/crypto/caam/sm_store.c
+++ b/drivers/crypto/caam/sm_store.c
@@ -1018,7 +1018,7 @@ int caam_sm_startup(struct platform_device *pdev)
* we can divorce the controller and ring drivers, and then assign
* an SM instance to any ring instance).
*/
- smpriv->smringdev = caam_jr_alloc();
+ smpriv->smringdev = &ctrlpriv->jrpdev[0]->dev;
jrpriv = dev_get_drvdata(smpriv->smringdev);
lpagect = 0;
lpagedesc = kzalloc(sizeof(struct sm_page_descriptor)