summaryrefslogtreecommitdiff
path: root/drivers/crypto/caam
diff options
context:
space:
mode:
authorRanjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>2018-05-07 18:36:11 -0500
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit5965cea238aaef18fd7efe2b93fa7b32c8c86598 (patch)
treeb63faf8ad3d9428e0fc53dfb85ef8e14c1071dab /drivers/crypto/caam
parent06025c11471157b034a48aa758c8dfcae6a5d368 (diff)
MLK-18220-4 caam: Ensure that CAAM job rings resouces are powered up.
The caam driver should power up the Job Rings before using them. Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r--drivers/crypto/caam/ctrl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index d9f4ad0c7309..b11aae6e6120 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -2,12 +2,13 @@
* Controller-level driver, kernel property detection, initialization
*
* Copyright 2008-2016 Freescale Semiconductor, Inc.
- * Copyright 2017 NXP
+ * Copyright 2017-2018 NXP
*/
#include <linux/device.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
+#include <linux/pm_domain.h>
#include "compat.h"
#include "regs.h"
@@ -445,6 +446,8 @@ static int enable_jobrings(struct caam_drv_private *ctrlpriv, int block_offset)
ring);
continue;
}
+ /* Power up the job ring.*/
+ genpd_dev_pm_attach(&ctrlpriv->jrpdev[ring]->dev);
if (of_property_read_u32_index(np, "reg", 0, &index)) {
pr_warn("%s read reg property error %d.",