mbox series

[v4,00/33] clk: qcom: cleanup sm8250/sdm845/sc7180 clock drivers

Message ID 20210405224743.590029-1-dmitry.baryshkov@linaro.org
Headers show
Series clk: qcom: cleanup sm8250/sdm845/sc7180 clock drivers | expand

Message

Dmitry Baryshkov April 5, 2021, 10:47 p.m. UTC
Cleanup several Qualcomm clock drivers by removing unused entries from
parents map, removing test clock, etc.

Changes since v3:
 - Use ARRAY_SIZE() for num_parents and parent_hws instead of
   parent_data where applicable as suggested by Marijn Suijten
   These changes are applied both as a part of 'convert ot parent data'
   patches and as separate changes to respective clock drivers (which
   already used parent_data).

Changes since v2:
 - Comment out unsupported video_pll0_out_odd/_even clocks instead of
   removing them or just using .name for them. The clocks are
   unsupported, but mux values are provided for the future reference.

Changes since v1:
 - Remove unused entries from gpucc-sc7180, gpucc-sdm845, videocc-sc7180
   and videocc-sm8150 drivers
 - Restore video_pll0_out_odd/_even entries in videocc-sdm845 driver as
   requested by Taniya Das.

Comments

Dmitry Baryshkov April 5, 2021, 10:49 p.m. UTC | #1
On Tue, 6 Apr 2021 at 01:47, Dmitry Baryshkov
<dmitry.baryshkov@linaro.org> wrote:
>

> Cleanup several Qualcomm clock drivers by removing unused entries from

> parents map, removing test clock, etc.

>

> Changes since v3:

>  - Use ARRAY_SIZE() for num_parents and parent_hws instead of

>    parent_data where applicable as suggested by Marijn Suijten

>    These changes are applied both as a part of 'convert ot parent data'

>    patches and as separate changes to respective clock drivers (which

>    already used parent_data).

>

> Changes since v2:

>  - Comment out unsupported video_pll0_out_odd/_even clocks instead of

>    removing them or just using .name for them. The clocks are

>    unsupported, but mux values are provided for the future reference.

>

> Changes since v1:

>  - Remove unused entries from gpucc-sc7180, gpucc-sdm845, videocc-sc7180

>    and videocc-sm8150 drivers

>  - Restore video_pll0_out_odd/_even entries in videocc-sdm845 driver as

>    requested by Taniya Das.


For your convenience:

The following changes since commit a38fd8748464831584a19438cbb3082b5a2dab15:

  Linux 5.12-rc2 (2021-03-05 17:33:41 -0800)

are available in the Git repository at:

  https://git.linaro.org/people/dmitry.baryshkov/kernel.git qcom-clk-cleanup

for you to fetch changes up to 576546d30f7df4813b0bb5874486f08f82f28ec1:

  clk: qcom: gcc-sm8350: use ARRAY_SIZE instead of specifying
num_parents (2021-04-05 23:48:03 +0300)

----------------------------------------------------------------
Dmitry Baryshkov (33):
      clk: qcom: dispcc-sc7180: drop unused enum entries
      clk: qcom: dispcc-sm8250: drop unused enum entries
      clk: qcom: gcc-sm8250: drop unused enum entries
      clk: qcom: gpucc-sc7180: drop unused enum entries
      clk: qcom: gpucc-sdm845: drop unused enum entries
      clk: qcom: gpucc-sm8150: drop unused enum entries
      clk: qcom: gpucc-sm8250: drop unused enum entries
      clk: qcom: videocc-sc7180: drop unused enum entries
      clk: qcom: videocc-sm8150: drop unused enum entries
      clk: qcom: videocc-sm8250: drop unused enum entries
      clk: qcom: dispcc-sdm845: convert to parent data
      clk: qcom: gpucc-sdm845: convert to parent data
      clk: qcom: videocc-sdm845: convert to parent data
      clk: qcom: gpucc-sdm845: get rid of the test clock
      clk: qcom: dispcc-sdm845: get rid of the test clock
      clk: qcom: videocc-sdm845: get rid of the test clock
      clk: qcom: dispcc-sc7180: use parent_hws where possible
      clk: qcom: dispcc-sm8250: use parent_hws where possible
      clk: qcom: gcc-sc7180: use parent_hws where possible
      clk: qcom: gcc-sc7280: use parent_hws where possible
      clk: qcom: gcc-sdx55: use parent_hws where possible
      clk: qcom: gcc-sm8150: use parent_hws where possible
      clk: qcom: gcc-sm8250: use parent_hws where possible
      clk: qcom: gcc-sm8350: use parent_hws where possible
      clk: qcom: gpucc-sm8150: use parent_hws where possible
      clk: qcom: gpucc-sm8250: use parent_hws where possible
      clk: qcom: videocc-sm8150: use parent_hws where possible
      clk: qcom: videocc-sm8250: use parent_hws where possible
      clk: qcom: gcc-sc7180: use ARRAY_SIZE instead of specifying num_parents
      clk: qcom: gcc-sc8180x: use ARRAY_SIZE instead of specifying num_parents
      clk: qcom: gcc-sm8150: use ARRAY_SIZE instead of specifying num_parents
      clk: qcom: gcc-sm8250: use ARRAY_SIZE instead of specifying num_parents
      clk: qcom: gcc-sm8350: use ARRAY_SIZE instead of specifying num_parents

 drivers/clk/qcom/dispcc-sc7180.c  |  70 ++++---
 drivers/clk/qcom/dispcc-sdm845.c  | 217 ++++++++++----------
 drivers/clk/qcom/dispcc-sm8250.c  | 124 ++++++-----
 drivers/clk/qcom/gcc-sc7180.c     | 196 +++++++++---------
 drivers/clk/qcom/gcc-sc7280.c     | 248 +++++++++++-----------
 drivers/clk/qcom/gcc-sc8180x.c    | 122 +++++------
 drivers/clk/qcom/gcc-sdx55.c      |   8 +-
 drivers/clk/qcom/gcc-sm8150.c     | 100 ++++-----
 drivers/clk/qcom/gcc-sm8250.c     | 345 ++++++++++++++++---------------
 drivers/clk/qcom/gcc-sm8350.c     | 418 +++++++++++++++++++-------------------
 drivers/clk/qcom/gpucc-sc7180.c   |   3 -
 drivers/clk/qcom/gpucc-sdm845.c   |  45 ++--
 drivers/clk/qcom/gpucc-sm8150.c   |   9 +-
 drivers/clk/qcom/gpucc-sm8250.c   |   9 +-
 drivers/clk/qcom/videocc-sc7180.c |   4 -
 drivers/clk/qcom/videocc-sdm845.c |  55 +++--
 drivers/clk/qcom/videocc-sm8150.c |  20 +-
 drivers/clk/qcom/videocc-sm8250.c |  30 ++-
 18 files changed, 991 insertions(+), 1032 deletions(-)


-- 
With best wishes
Dmitry
Stephen Boyd April 7, 2021, 11:43 p.m. UTC | #2
Quoting Dmitry Baryshkov (2021-04-05 15:47:10)
> Cleanup several Qualcomm clock drivers by removing unused entries from

> parents map, removing test clock, etc.


Checkpatch complains about block comments. I'll fix it up when applying.