2020-08-08 15:05:48 +00:00
|
|
|
From 1aec193ea41d672d11592714cdda8167eb3b38fc Mon Sep 17 00:00:00 2001
|
2020-01-26 03:47:49 +00:00
|
|
|
From: Abhishek Sahu <absahu@codeaurora.org>
|
2020-08-08 15:05:48 +00:00
|
|
|
Date: Wed, 18 Mar 2020 14:16:56 +0100
|
|
|
|
Subject: ipq806x: gcc: Added the enable regs and mask for PRNG
|
2020-01-26 03:47:49 +00:00
|
|
|
|
2020-08-08 15:05:48 +00:00
|
|
|
Kernel got hanged while reading from /dev/hwrng at the
|
2020-01-26 03:47:49 +00:00
|
|
|
time of PRNG clock enable
|
|
|
|
|
2020-08-08 15:05:48 +00:00
|
|
|
Fixes: 24d8fba44af3 "clk: qcom: Add support for IPQ8064's global clock controller (GCC)"
|
2020-01-26 03:47:49 +00:00
|
|
|
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
|
2020-08-08 15:05:48 +00:00
|
|
|
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
|
|
|
Link: https://lkml.kernel.org/r/20200318131657.345-1-ansuelsmth@gmail.com
|
|
|
|
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
|
2020-01-26 03:47:49 +00:00
|
|
|
---
|
|
|
|
drivers/clk/qcom/gcc-ipq806x.c | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/clk/qcom/gcc-ipq806x.c
|
|
|
|
+++ b/drivers/clk/qcom/gcc-ipq806x.c
|
2020-01-26 03:27:46 +00:00
|
|
|
@@ -1225,6 +1225,8 @@ static struct clk_rcg prng_src = {
|
2020-01-26 03:47:49 +00:00
|
|
|
.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,
|