0011-v6.2-clk-qcom-ipq8074-populate-fw_name-for-all-parents.patch 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. From 78936d46470938caa9a7ea529deeb36777b4f98e Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <[email protected]>
  3. Date: Wed, 16 Nov 2022 22:46:55 +0100
  4. Subject: [PATCH] clk: qcom: ipq8074: populate fw_name for all parents
  5. It appears that having only .name populated in parent_data for clocks
  6. which are only globally searchable currently will not work as the clk core
  7. won't copy that name if there is no .fw_name present as well.
  8. So, populate .fw_name for all parent clocks in parent_data.
  9. Fixes: ae55ad32e273 ("clk: qcom: ipq8074: convert to parent data")
  10. Co-developed-by: Christian Marangi <[email protected]>
  11. Signed-off-by: Christian Marangi <[email protected]>
  12. Signed-off-by: Robert Marko <[email protected]>
  13. Signed-off-by: Bjorn Andersson <[email protected]>
  14. Link: https://lore.kernel.org/r/[email protected]
  15. ---
  16. drivers/clk/qcom/gcc-ipq8074.c | 52 +++++++++++++++++-----------------
  17. 1 file changed, 26 insertions(+), 26 deletions(-)
  18. --- a/drivers/clk/qcom/gcc-ipq8074.c
  19. +++ b/drivers/clk/qcom/gcc-ipq8074.c
  20. @@ -674,7 +674,7 @@ static struct clk_rcg2 pcie0_aux_clk_src
  21. };
  22. static const struct clk_parent_data gcc_pcie20_phy0_pipe_clk_xo[] = {
  23. - { .name = "pcie20_phy0_pipe_clk" },
  24. + { .fw_name = "pcie0_pipe", .name = "pcie20_phy0_pipe_clk" },
  25. { .fw_name = "xo", .name = "xo" },
  26. };
  27. @@ -727,7 +727,7 @@ static struct clk_rcg2 pcie1_aux_clk_src
  28. };
  29. static const struct clk_parent_data gcc_pcie20_phy1_pipe_clk_xo[] = {
  30. - { .name = "pcie20_phy1_pipe_clk" },
  31. + { .fw_name = "pcie1_pipe", .name = "pcie20_phy1_pipe_clk" },
  32. { .fw_name = "xo", .name = "xo" },
  33. };
  34. @@ -1131,7 +1131,7 @@ static const struct freq_tbl ftbl_nss_no
  35. static const struct clk_parent_data gcc_xo_bias_pll_nss_noc_clk_gpll0_gpll2[] = {
  36. { .fw_name = "xo", .name = "xo" },
  37. - { .name = "bias_pll_nss_noc_clk" },
  38. + { .fw_name = "bias_pll_nss_noc_clk", .name = "bias_pll_nss_noc_clk" },
  39. { .hw = &gpll0.clkr.hw },
  40. { .hw = &gpll2.clkr.hw },
  41. };
  42. @@ -1356,7 +1356,7 @@ static const struct freq_tbl ftbl_nss_pp
  43. static const struct clk_parent_data gcc_xo_bias_gpll0_gpll4_nss_ubi32[] = {
  44. { .fw_name = "xo", .name = "xo" },
  45. - { .name = "bias_pll_cc_clk" },
  46. + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
  47. { .hw = &gpll0.clkr.hw },
  48. { .hw = &gpll4.clkr.hw },
  49. { .hw = &nss_crypto_pll.clkr.hw },
  50. @@ -1407,10 +1407,10 @@ static const struct freq_tbl ftbl_nss_po
  51. static const struct clk_parent_data gcc_xo_uniphy0_rx_tx_ubi32_bias[] = {
  52. { .fw_name = "xo", .name = "xo" },
  53. - { .name = "uniphy0_gcc_rx_clk" },
  54. - { .name = "uniphy0_gcc_tx_clk" },
  55. + { .fw_name = "uniphy0_gcc_rx_clk", .name = "uniphy0_gcc_rx_clk" },
  56. + { .fw_name = "uniphy0_gcc_tx_clk", .name = "uniphy0_gcc_tx_clk" },
  57. { .hw = &ubi32_pll.clkr.hw },
  58. - { .name = "bias_pll_cc_clk" },
  59. + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
  60. };
  61. static const struct parent_map gcc_xo_uniphy0_rx_tx_ubi32_bias_map[] = {
  62. @@ -1459,10 +1459,10 @@ static const struct freq_tbl ftbl_nss_po
  63. static const struct clk_parent_data gcc_xo_uniphy0_tx_rx_ubi32_bias[] = {
  64. { .fw_name = "xo", .name = "xo" },
  65. - { .name = "uniphy0_gcc_tx_clk" },
  66. - { .name = "uniphy0_gcc_rx_clk" },
  67. + { .fw_name = "uniphy0_gcc_tx_clk", .name = "uniphy0_gcc_tx_clk" },
  68. + { .fw_name = "uniphy0_gcc_rx_clk", .name = "uniphy0_gcc_rx_clk" },
  69. { .hw = &ubi32_pll.clkr.hw },
  70. - { .name = "bias_pll_cc_clk" },
  71. + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
  72. };
  73. static const struct parent_map gcc_xo_uniphy0_tx_rx_ubi32_bias_map[] = {
  74. @@ -1690,12 +1690,12 @@ static const struct freq_tbl ftbl_nss_po
  75. static const struct clk_parent_data gcc_xo_uniphy0_rx_tx_uniphy1_rx_tx_ubi32_bias[] = {
  76. { .fw_name = "xo", .name = "xo" },
  77. - { .name = "uniphy0_gcc_rx_clk" },
  78. - { .name = "uniphy0_gcc_tx_clk" },
  79. - { .name = "uniphy1_gcc_rx_clk" },
  80. - { .name = "uniphy1_gcc_tx_clk" },
  81. + { .fw_name = "uniphy0_gcc_rx_clk", .name = "uniphy0_gcc_rx_clk" },
  82. + { .fw_name = "uniphy0_gcc_tx_clk", .name = "uniphy0_gcc_tx_clk" },
  83. + { .fw_name = "uniphy1_gcc_rx_clk", .name = "uniphy1_gcc_rx_clk" },
  84. + { .fw_name = "uniphy1_gcc_tx_clk", .name = "uniphy1_gcc_tx_clk" },
  85. { .hw = &ubi32_pll.clkr.hw },
  86. - { .name = "bias_pll_cc_clk" },
  87. + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
  88. };
  89. static const struct parent_map
  90. @@ -1752,12 +1752,12 @@ static const struct freq_tbl ftbl_nss_po
  91. static const struct clk_parent_data gcc_xo_uniphy0_tx_rx_uniphy1_tx_rx_ubi32_bias[] = {
  92. { .fw_name = "xo", .name = "xo" },
  93. - { .name = "uniphy0_gcc_tx_clk" },
  94. - { .name = "uniphy0_gcc_rx_clk" },
  95. - { .name = "uniphy1_gcc_tx_clk" },
  96. - { .name = "uniphy1_gcc_rx_clk" },
  97. + { .fw_name = "uniphy0_gcc_tx_clk", .name = "uniphy0_gcc_tx_clk" },
  98. + { .fw_name = "uniphy0_gcc_rx_clk", .name = "uniphy0_gcc_rx_clk" },
  99. + { .fw_name = "uniphy1_gcc_tx_clk", .name = "uniphy1_gcc_tx_clk" },
  100. + { .fw_name = "uniphy1_gcc_rx_clk", .name = "uniphy1_gcc_rx_clk" },
  101. { .hw = &ubi32_pll.clkr.hw },
  102. - { .name = "bias_pll_cc_clk" },
  103. + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
  104. };
  105. static const struct parent_map
  106. @@ -1814,10 +1814,10 @@ static const struct freq_tbl ftbl_nss_po
  107. static const struct clk_parent_data gcc_xo_uniphy2_rx_tx_ubi32_bias[] = {
  108. { .fw_name = "xo", .name = "xo" },
  109. - { .name = "uniphy2_gcc_rx_clk" },
  110. - { .name = "uniphy2_gcc_tx_clk" },
  111. + { .fw_name = "uniphy2_gcc_rx_clk", .name = "uniphy2_gcc_rx_clk" },
  112. + { .fw_name = "uniphy2_gcc_tx_clk", .name = "uniphy2_gcc_tx_clk" },
  113. { .hw = &ubi32_pll.clkr.hw },
  114. - { .name = "bias_pll_cc_clk" },
  115. + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
  116. };
  117. static const struct parent_map gcc_xo_uniphy2_rx_tx_ubi32_bias_map[] = {
  118. @@ -1871,10 +1871,10 @@ static const struct freq_tbl ftbl_nss_po
  119. static const struct clk_parent_data gcc_xo_uniphy2_tx_rx_ubi32_bias[] = {
  120. { .fw_name = "xo", .name = "xo" },
  121. - { .name = "uniphy2_gcc_tx_clk" },
  122. - { .name = "uniphy2_gcc_rx_clk" },
  123. + { .fw_name = "uniphy2_gcc_tx_clk", .name = "uniphy2_gcc_tx_clk" },
  124. + { .fw_name = "uniphy2_gcc_rx_clk", .name = "uniphy2_gcc_rx_clk" },
  125. { .hw = &ubi32_pll.clkr.hw },
  126. - { .name = "bias_pll_cc_clk" },
  127. + { .fw_name = "bias_pll_cc_clk", .name = "bias_pll_cc_clk" },
  128. };
  129. static const struct parent_map gcc_xo_uniphy2_tx_rx_ubi32_bias_map[] = {