All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipq806x: gcc: Added the enable regs and mask for PRNG
@ 2020-03-13 18:54 Ansuel Smith
  2020-03-13 20:30 ` Stephen Boyd
  0 siblings, 1 reply; 6+ messages in thread
From: Ansuel Smith @ 2020-03-13 18:54 UTC (permalink / raw)
  To: agross
  Cc: Ansuel Smith, Abhishek Sahu, Bjorn Andersson, Michael Turquette,
	Stephen Boyd, linux-arm-msm, linux-clk, linux-kernel

kernel got hanged while reading from /dev/hwrng at the
time of PRNG clock enable

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
---
 drivers/clk/qcom/gcc-ipq806x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c
index b0eee0903807..a8456e09c44d 100644
--- a/drivers/clk/qcom/gcc-ipq806x.c
+++ b/drivers/clk/qcom/gcc-ipq806x.c
@@ -1224,6 +1224,8 @@ static struct clk_rcg prng_src = {
 		.parent_map = gcc_pxo_pll8_map,
 	},
 	.clkr = {
+		.enable_reg = 0x2e80,
+		.enable_mask = BIT(11),
 		.hw.init = &(struct clk_init_data){
 			.name = "prng_src",
 			.parent_names = gcc_pxo_pll8,
-- 
2.25.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-16 18:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-13 18:54 [PATCH] ipq806x: gcc: Added the enable regs and mask for PRNG Ansuel Smith
2020-03-13 20:30 ` Stephen Boyd
2020-03-13 21:20   ` R: " ansuelsmth
2020-03-14  1:15     ` Stephen Boyd
2020-03-14 13:36   ` [RESEND PATCH] " Ansuel Smith
2020-03-16 18:31     ` Stephen Boyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.