100-v5.18-08-linux-next-clk-qcom-gcc-ipq806x-add-unusued-flag-for-critical-c.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. From 28aa450d38e521de45be951df052d2c49a17fae2 Mon Sep 17 00:00:00 2001
  2. From: Ansuel Smith <[email protected]>
  3. Date: Sat, 26 Feb 2022 14:52:28 +0100
  4. Subject: [PATCH 08/14] clk: qcom: gcc-ipq806x: add unusued flag for critical
  5. clock
  6. Some clocks are used by other devices present on the SoC. For example
  7. the gsbi4_h_clk is used by RPM and is if disabled cause the RPM to
  8. reject any regulator change command. These clock should never be
  9. disabled.
  10. Signed-off-by: Ansuel Smith <[email protected]>
  11. Tested-by: Jonathan McDowell <[email protected]>
  12. Signed-off-by: Bjorn Andersson <[email protected]>
  13. Link: https://lore.kernel.org/r/[email protected]
  14. ---
  15. drivers/clk/qcom/gcc-ipq806x.c | 9 +++++----
  16. 1 file changed, 5 insertions(+), 4 deletions(-)
  17. --- a/drivers/clk/qcom/gcc-ipq806x.c
  18. +++ b/drivers/clk/qcom/gcc-ipq806x.c
  19. @@ -798,7 +798,7 @@ static struct clk_rcg gsbi4_qup_src = {
  20. .parent_data = gcc_pxo_pll8,
  21. .num_parents = ARRAY_SIZE(gcc_pxo_pll8),
  22. .ops = &clk_rcg_ops,
  23. - .flags = CLK_SET_PARENT_GATE,
  24. + .flags = CLK_SET_PARENT_GATE | CLK_IGNORE_UNUSED,
  25. },
  26. },
  27. };
  28. @@ -816,7 +816,7 @@ static struct clk_branch gsbi4_qup_clk =
  29. },
  30. .num_parents = 1,
  31. .ops = &clk_branch_ops,
  32. - .flags = CLK_SET_RATE_PARENT,
  33. + .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
  34. },
  35. },
  36. };
  37. @@ -900,7 +900,7 @@ static struct clk_rcg gsbi6_qup_src = {
  38. .parent_data = gcc_pxo_pll8,
  39. .num_parents = ARRAY_SIZE(gcc_pxo_pll8),
  40. .ops = &clk_rcg_ops,
  41. - .flags = CLK_SET_PARENT_GATE,
  42. + .flags = CLK_SET_PARENT_GATE | CLK_IGNORE_UNUSED,
  43. },
  44. },
  45. };
  46. @@ -969,7 +969,7 @@ static struct clk_branch gsbi7_qup_clk =
  47. },
  48. .num_parents = 1,
  49. .ops = &clk_branch_ops,
  50. - .flags = CLK_SET_RATE_PARENT,
  51. + .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
  52. },
  53. },
  54. };
  55. @@ -1015,6 +1015,7 @@ static struct clk_branch gsbi4_h_clk = {
  56. .hw.init = &(struct clk_init_data){
  57. .name = "gsbi4_h_clk",
  58. .ops = &clk_branch_ops,
  59. + .flags = CLK_IGNORE_UNUSED,
  60. },
  61. },
  62. };