307-gcc-Added-the-enable-regs-and-mask-for-PRNG.patch 814 B

12345678910111213141516171819202122232425
  1. From dd43e356db678a564ad2cc111962d72ba3162a38 Mon Sep 17 00:00:00 2001
  2. From: Abhishek Sahu <absahu@codeaurora.org>
  3. Date: Wed, 18 Nov 2015 12:38:56 +0530
  4. Subject: ipq806x: gcc: Added the enable regs and mask for PRNG
  5. kernel got hanged while reading from /dev/hwrng at the
  6. time of PRNG clock enable
  7. Change-Id: I89856c7e19e6639508e6a2774304583a3ec91172
  8. Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
  9. ---
  10. drivers/clk/qcom/gcc-ipq806x.c | 2 ++
  11. 1 file changed, 2 insertions(+)
  12. --- a/drivers/clk/qcom/gcc-ipq806x.c
  13. +++ b/drivers/clk/qcom/gcc-ipq806x.c
  14. @@ -1240,6 +1240,8 @@ static struct clk_rcg prng_src = {
  15. .parent_map = gcc_pxo_pll8_map,
  16. },
  17. .clkr = {
  18. + .enable_reg = 0x2e80,
  19. + .enable_mask = BIT(11),
  20. .hw.init = &(struct clk_init_data){
  21. .name = "prng_src",
  22. .parent_names = gcc_pxo_pll8,