diff options
author | Ofir Drang <ofir.drang@arm.com> | 2019-04-18 16:39:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-22 07:37:39 +0200 |
commit | 65f5c14a60118e97bbd8fc1f78232c6ceb0efd63 (patch) | |
tree | 60f76f663610c01c6afe3a65c088d62362d8dfa6 /drivers/crypto | |
parent | 1a4fc3d29632fe86ee461dee9ca8ab26aaa95806 (diff) | |
download | linux-stable-65f5c14a60118e97bbd8fc1f78232c6ceb0efd63.tar.gz linux-stable-65f5c14a60118e97bbd8fc1f78232c6ceb0efd63.tar.bz2 linux-stable-65f5c14a60118e97bbd8fc1f78232c6ceb0efd63.zip |
crypto: ccree - HOST_POWER_DOWN_EN should be the last CC access during suspend
commit 3499efbeed39d114873267683b9e776bcb34b058 upstream.
During power management suspend the driver need to prepare the device
for the power down operation and as a last indication write to the
HOST_POWER_DOWN_EN register which signals to the hardware that
The ccree is ready for power down.
Signed-off-by: Ofir Drang <ofir.drang@arm.com>
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/ccree/cc_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccree/cc_pm.c b/drivers/crypto/ccree/cc_pm.c index d433804dead3..27e363ffb467 100644 --- a/drivers/crypto/ccree/cc_pm.c +++ b/drivers/crypto/ccree/cc_pm.c @@ -25,13 +25,13 @@ int cc_pm_suspend(struct device *dev) int rc; dev_dbg(dev, "set HOST_POWER_DOWN_EN\n"); - cc_iowrite(drvdata, CC_REG(HOST_POWER_DOWN_EN), POWER_DOWN_ENABLE); rc = cc_suspend_req_queue(drvdata); if (rc) { dev_err(dev, "cc_suspend_req_queue (%x)\n", rc); return rc; } fini_cc_regs(drvdata); + cc_iowrite(drvdata, CC_REG(HOST_POWER_DOWN_EN), POWER_DOWN_ENABLE); cc_clk_off(drvdata); return 0; } |