Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipq806x: gcc: Added the enable regs and mask for PRNG

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

Fixes: 24d8fba44af3 "clk: qcom: Add support for IPQ8064's global clock controller (GCC)"
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
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>

authored by

Abhishek Sahu and committed by
Stephen Boyd
1aec193e 8def929c

+2
+2
drivers/clk/qcom/gcc-ipq806x.c
··· 1224 1224 .parent_map = gcc_pxo_pll8_map, 1225 1225 }, 1226 1226 .clkr = { 1227 + .enable_reg = 0x2e80, 1228 + .enable_mask = BIT(11), 1227 1229 .hw.init = &(struct clk_init_data){ 1228 1230 .name = "prng_src", 1229 1231 .parent_names = gcc_pxo_pll8,