mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/6] clk: samsung: Add PM support for ARM64 Exynos chips
@ 2023-02-23  4:19 Sam Protsenko
  2023-02-23  4:19 ` [PATCH v3 1/6] clk: samsung: Don't pass reg_base to samsung_clk_register_pll() Sam Protsenko
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Sam Protsenko @ 2023-02-23  4:19 UTC (permalink / raw)
  To: Marek Szyprowski, Krzysztof Kozlowski, Sylwester Nawrocki, Chanwoo Choi
  Cc: Tomasz Figa, Alim Akhtar, Chanho Park, David Virag, Sumit Semwal,
	Michael Turquette, Stephen Boyd, linux-samsung-soc, linux-clk,
	linux-arm-kernel, linux-kernel

In order to prepare for PM enablement in clk-exynos850, common PM code
was extracted from clk-exynos5433 to clk-exynos-arm64. Also some related
cleanups were done prior to that. More specifically:

  - patches #1..5: cleanups
  - patch #6: PM code extraction

During the extraction of the exynos5433_cmu_probe() content to
exynos_arm64_register_cmu_pm() some code was reworked a bit, and also
split into smaller functions. In particular:

  - cmu_data structure now contains a pointer to ctx, which is now
    allocated in samsung_clk_init()
  - cmu_data structure initialization was moved into separate function
  - code for configuring gate clocks was added (optional)

Which in turn resulted in somehow modified code of probe function:

  Original
  --------

    ...
    devm_platform_ioremap_resource(...);
    samsung_clk_init(...);
    exynos_arm64_cmu_prepare_pm(...);
    exynos_arm64_enable_bus_clk(...);
    platform_set_drvdata(...);
    ...

  Modified
  --------

    ...
    platform_set_drvdata(...);
    exynos_arm64_cmu_prepare_pm(...);
    exynos_arm64_enable_bus_clk(...);
    exynos_arm64_init_clocks(...);
    devm_platform_ioremap_resource(...);
    samsung_clk_init(...);
    ...

That shouldn't really change the logic or mode of operation. It was
preliminary tested on Exynos850 based board, with some extra patches on
top of this series (will be submitted later).

Changes in v3:
  - Rebased on the most recent soc/for-next tree
  - Added A-b tags from Marek
  - Added Marek's authorship to clk-exynos-arm64.c

Changes in v2:
  - Rebased all patches on top of the latest soc/for-next tree
  - Added Tested-by tag from Marek
  - Addressed comments from the review

Sam Protsenko (6):
  clk: samsung: Don't pass reg_base to samsung_clk_register_pll()
  clk: samsung: Remove np argument from samsung_clk_init()
  clk: samsung: Set dev in samsung_clk_init()
  clk: samsung: Extract clocks registration to common function
  clk: samsung: Extract parent clock enabling to common function
  clk: samsung: exynos5433: Extract PM support to common ARM64 layer

 drivers/clk/samsung/clk-exynos-arm64.c   | 220 +++++++++++++++++++++--
 drivers/clk/samsung/clk-exynos-arm64.h   |   3 +
 drivers/clk/samsung/clk-exynos4.c        |   6 +-
 drivers/clk/samsung/clk-exynos4412-isp.c |   3 +-
 drivers/clk/samsung/clk-exynos5250.c     |   5 +-
 drivers/clk/samsung/clk-exynos5420.c     |   5 +-
 drivers/clk/samsung/clk-exynos5433.c     | 157 +---------------
 drivers/clk/samsung/clk-pll.c            |  11 +-
 drivers/clk/samsung/clk-s3c64xx.c        |   4 +-
 drivers/clk/samsung/clk-s5pv210.c        |   6 +-
 drivers/clk/samsung/clk.c                |  64 ++++---
 drivers/clk/samsung/clk.h                |  10 +-
 12 files changed, 276 insertions(+), 218 deletions(-)

-- 
2.39.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-03-06 23:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23  4:19 [PATCH v3 0/6] clk: samsung: Add PM support for ARM64 Exynos chips Sam Protsenko
2023-02-23  4:19 ` [PATCH v3 1/6] clk: samsung: Don't pass reg_base to samsung_clk_register_pll() Sam Protsenko
2023-03-06 14:49   ` (subset) " Krzysztof Kozlowski
2023-02-23  4:19 ` [PATCH v3 2/6] clk: samsung: Remove np argument from samsung_clk_init() Sam Protsenko
2023-03-06 14:40   ` Krzysztof Kozlowski
2023-03-06 18:56     ` Sam Protsenko
2023-03-06 14:49   ` (subset) " Krzysztof Kozlowski
2023-02-23  4:19 ` [PATCH v3 3/6] clk: samsung: Set dev in samsung_clk_init() Sam Protsenko
2023-03-06 14:49   ` (subset) " Krzysztof Kozlowski
2023-02-23  4:19 ` [PATCH v3 4/6] clk: samsung: Extract clocks registration to common function Sam Protsenko
2023-02-23  4:19 ` [PATCH v3 5/6] clk: samsung: Extract parent clock enabling " Sam Protsenko
2023-03-06 14:35   ` Krzysztof Kozlowski
2023-03-06 23:47     ` Sam Protsenko
2023-02-23  4:19 ` [PATCH v3 6/6] clk: samsung: exynos5433: Extract PM support to common ARM64 layer Sam Protsenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®