All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] clk: implement sync_state support
@ 2026-06-03 14:21 Brian Masney
  2026-06-03 14:21 ` [PATCH 1/4] clk: introduce stub clk_sync_state() Brian Masney
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Brian Masney @ 2026-06-03 14:21 UTC (permalink / raw)
  To: Saravana Kannan, Abel Vesa, Maxime Ripard, Michael Turquette,
	Stephen Boyd, Russell King, Bjorn Andersson, Hans de Goede
  Cc: linux-clk, linux-kernel, linux-arm-msm, Brian Masney

The existing support for disabling unused clks runs in the late initcall
stage, and it has been known for a long time that this is broken since
it runs too early in the boot up process. It doesn't work for kernel
modules, and it also doesn't work if all of the consumers haven't fully
probed yet. Folks have long recommended to boot certain platforms with
clk_ignore_unused to work around issues with disabling unused clks.

This series:
- Adds a generic clk_sync_state() callback that's initially empty.
- Adds a generic qcom_cc_sync_state() for qcom SoCs that need to
  interact with the Interconnect framework.
- Converts the 7 qcom drivers from using icc_sync_state() to
  qcom_cc_sync_state().
- Implement the framework-level sync state via clk_sync_state().

This approach maintains bisectability.

Signed-off-by: Brian Masney <bmasney@redhat.com>
---
Brian Masney (4):
      clk: introduce stub clk_sync_state()
      clk: qcom: common: introduce qcom_cc_sync_state()
      clk: qcom: convert from icc_sync_state() to qcom_cc_sync_state()
      clk: implement sync_state support

 drivers/clk/clk.c                | 75 +++++++++++++++++++++++++++++++++-------
 drivers/clk/qcom/apss-ipq5424.c  |  3 +-
 drivers/clk/qcom/clk-cbf-8996.c  |  5 ++-
 drivers/clk/qcom/common.c        |  9 +++++
 drivers/clk/qcom/common.h        |  1 +
 drivers/clk/qcom/gcc-ipq5332.c   |  3 +-
 drivers/clk/qcom/gcc-ipq5424.c   |  3 +-
 drivers/clk/qcom/gcc-ipq9574.c   |  3 +-
 drivers/clk/qcom/nsscc-ipq5424.c |  3 +-
 drivers/clk/qcom/nsscc-ipq9574.c |  3 +-
 include/linux/clk.h              | 14 ++++++++
 11 files changed, 95 insertions(+), 27 deletions(-)
---
base-commit: 08484c504b55a98bd100527fbe10a3caf55ff3ff
change-id: 20260602-clk-sync-state-c0539c5530f4

Best regards,
-- 
Brian Masney <bmasney@redhat.com>


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

end of thread, other threads:[~2026-06-15 15:04 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 14:21 [PATCH 0/4] clk: implement sync_state support Brian Masney
2026-06-03 14:21 ` [PATCH 1/4] clk: introduce stub clk_sync_state() Brian Masney
2026-06-03 14:21 ` [PATCH 2/4] clk: qcom: common: introduce qcom_cc_sync_state() Brian Masney
2026-06-06 11:15   ` Dmitry Baryshkov
2026-06-07  4:43     ` Val Packett
2026-06-07 10:30       ` Dmitry Baryshkov
2026-06-15 14:24         ` Brian Masney
2026-06-15 14:33           ` Konrad Dybcio
2026-06-15 14:48             ` Brian Masney
2026-06-15 14:51               ` Konrad Dybcio
2026-06-15 15:04                 ` Brian Masney
2026-06-08  8:47   ` Konrad Dybcio
2026-06-03 14:21 ` [PATCH 3/4] clk: qcom: convert from icc_sync_state() to qcom_cc_sync_state() Brian Masney
2026-06-06  6:25   ` Jens Glathe
2026-06-15 14:22     ` Brian Masney
2026-06-15 14:50       ` Jens Glathe
2026-06-06 11:17   ` Dmitry Baryshkov
2026-06-03 14:21 ` [PATCH 4/4] clk: implement sync_state support Brian Masney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.