projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d57e2f7
)
hwrng: cctrng - Add missing clk_disable_unprepare in cctrng_resume
author
Gaosheng Cui
<cuigaosheng1@huawei.com>
Sat, 3 Aug 2024 06:49:23 +0000
(14:49 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 10 Aug 2024 04:25:34 +0000
(12:25 +0800)
Add the missing clk_disable_unprepare() before return in
cctrng_resume().
Fixes:
a583ed310bb6
("hwrng: cctrng - introduce Arm CryptoCell driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/cctrng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/cctrng.c
b/drivers/char/hw_random/cctrng.c
index
c0d2f82
..
4c50efc
100644
(file)
--- a/
drivers/char/hw_random/cctrng.c
+++ b/
drivers/char/hw_random/cctrng.c
@@
-622,6
+622,7
@@
static int __maybe_unused cctrng_resume(struct device *dev)
/* wait for Cryptocell reset completion */
if (!cctrng_wait_for_reset_completion(drvdata)) {
dev_err(dev, "Cryptocell reset not completed");
+ clk_disable_unprepare(drvdata->clk);
return -EBUSY;
}