linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add missing parent_map to clocks in SM6350 clock drivers
@ 2024-12-20  9:03 Luca Weiss
  2024-12-20  9:03 ` [PATCH 1/2] clk: qcom: gcc-sm6350: Add missing parent_map for two clocks Luca Weiss
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Luca Weiss @ 2024-12-20  9:03 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd,
	AngeloGioacchino Del Regno, Konrad Dybcio
  Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm, linux-clk,
	linux-kernel, Luca Weiss, stable

If a clk_rcg2 has a parent, it should also have parent_map defined,
otherwise we'll get a NULL pointer dereference when calling clk_set_rate
on those clocks.

Correct this on clocks in both gcc-sm6350 and dispcc-sm6350.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
Luca Weiss (2):
      clk: qcom: gcc-sm6350: Add missing parent_map for two clocks
      clk: qcom: dispcc-sm6350: Add missing parent_map for a clock

 drivers/clk/qcom/dispcc-sm6350.c |  7 +++----
 drivers/clk/qcom/gcc-sm6350.c    | 22 ++++++++++++++--------
 2 files changed, 17 insertions(+), 12 deletions(-)
---
base-commit: 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2
change-id: 20241220-sm6350-parent_map-c03e9b61a718

Best regards,
-- 
Luca Weiss <luca.weiss@fairphone.com>


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

end of thread, other threads:[~2024-12-26 22:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-20  9:03 [PATCH 0/2] Add missing parent_map to clocks in SM6350 clock drivers Luca Weiss
2024-12-20  9:03 ` [PATCH 1/2] clk: qcom: gcc-sm6350: Add missing parent_map for two clocks Luca Weiss
2024-12-20  9:42   ` Konrad Dybcio
2024-12-20 10:21     ` Luca Weiss
2024-12-20 10:28       ` Konrad Dybcio
2024-12-20  9:03 ` [PATCH 2/2] clk: qcom: dispcc-sm6350: Add missing parent_map for a clock Luca Weiss
2024-12-20  9:42   ` Konrad Dybcio
2024-12-20 10:28   ` Konrad Dybcio
2024-12-26 22:38 ` [PATCH 0/2] Add missing parent_map to clocks in SM6350 clock drivers Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).