Linux clock framework development
 help / color / mirror / Atom feed
From: "Luca Weiss" <luca.weiss@fairphone.com>
To: "Vladimir Zapolskiy" <vladimir.zapolskiy@linaro.org>,
	"Bjorn Andersson" <andersson@kernel.org>,
	"Michael Turquette" <mturquette@baylibre.com>,
	"Stephen Boyd" <sboyd@kernel.org>,
	"Konrad Dybcio" <konradybcio@kernel.org>
Cc: "Taniya Das" <quic_tdas@quicinc.com>,
	"Dmitry Baryshkov" <lumag@kernel.org>,
	"Jagadeesh Kona" <quic_jkona@quicinc.com>,
	<linux-clk@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>
Subject: Re: [PATCH 2/6] clk: qcom: camcc-sm6350: Specify Titan GDSC power domain as a parent to other
Date: Thu, 11 Sep 2025 13:39:41 +0200	[thread overview]
Message-ID: <DCPXXM9P6F0V.5COAK4KHJHZI@fairphone.com> (raw)
In-Reply-To: <20250911011218.861322-3-vladimir.zapolskiy@linaro.org>

Hi Vladimir,

On Thu Sep 11, 2025 at 3:12 AM CEST, Vladimir Zapolskiy wrote:
> Make Titan GDSC power domain as a parent of all other GDSC power domains
> provided by the SM6350 camera clock controller to enforce a correct
> sequence of enabling and disabling power domains by the consumers.

Thanks, I've had something like this in my camera branch for a while,
but since I've had enough other problems with clocks/PDs there or camss
not working fully yet, I haven't bothered to upstream it.

Thanks!

Regards
Luca

>
> Fixes: 80f5451d9a7c ("clk: qcom: Add camera clock controller driver for SM6350")
> Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
> ---
>  drivers/clk/qcom/camcc-sm6350.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/drivers/clk/qcom/camcc-sm6350.c b/drivers/clk/qcom/camcc-sm6350.c
> index 8aac97d29ce3..6c272f7b0721 100644
> --- a/drivers/clk/qcom/camcc-sm6350.c
> +++ b/drivers/clk/qcom/camcc-sm6350.c
> @@ -1693,6 +1693,8 @@ static struct clk_branch camcc_sys_tmr_clk = {
>  	},
>  };
>  
> +static struct gdsc titan_top_gdsc;
> +
>  static struct gdsc bps_gdsc = {
>  	.gdscr = 0x6004,
>  	.en_rest_wait_val = 0x2,
> @@ -1702,6 +1704,7 @@ static struct gdsc bps_gdsc = {
>  		.name = "bps_gdsc",
>  	},
>  	.pwrsts = PWRSTS_OFF_ON,
> +	.parent = &titan_top_gdsc.pd,
>  	.flags = VOTABLE,
>  };
>  
> @@ -1714,6 +1717,7 @@ static struct gdsc ipe_0_gdsc = {
>  		.name = "ipe_0_gdsc",
>  	},
>  	.pwrsts = PWRSTS_OFF_ON,
> +	.parent = &titan_top_gdsc.pd,
>  	.flags = VOTABLE,
>  };
>  
> @@ -1726,6 +1730,7 @@ static struct gdsc ife_0_gdsc = {
>  		.name = "ife_0_gdsc",
>  	},
>  	.pwrsts = PWRSTS_OFF_ON,
> +	.parent = &titan_top_gdsc.pd,
>  };
>  
>  static struct gdsc ife_1_gdsc = {
> @@ -1737,6 +1742,7 @@ static struct gdsc ife_1_gdsc = {
>  		.name = "ife_1_gdsc",
>  	},
>  	.pwrsts = PWRSTS_OFF_ON,
> +	.parent = &titan_top_gdsc.pd,
>  };
>  
>  static struct gdsc ife_2_gdsc = {
> @@ -1748,6 +1754,7 @@ static struct gdsc ife_2_gdsc = {
>  		.name = "ife_2_gdsc",
>  	},
>  	.pwrsts = PWRSTS_OFF_ON,
> +	.parent = &titan_top_gdsc.pd,
>  };
>  
>  static struct gdsc titan_top_gdsc = {


  parent reply	other threads:[~2025-09-11 11:39 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-11  1:12 [PATCH 0/6] Specify Titan GDSC power domain as a parent to other Vladimir Zapolskiy
2025-09-11  1:12 ` [PATCH 1/6] clk: qcom: camcc-sm8550: " Vladimir Zapolskiy
2025-09-11  9:29   ` Konrad Dybcio
2025-09-11 11:08   ` Imran Shaik
2025-09-12  2:09   ` Bjorn Andersson
2025-09-12  6:23     ` Vladimir Zapolskiy
2025-09-16 15:38       ` Bjorn Andersson
2025-09-12 10:02   ` Bryan O'Donoghue
2025-09-11  1:12 ` [PATCH 2/6] clk: qcom: camcc-sm6350: " Vladimir Zapolskiy
2025-09-11  9:27   ` Konrad Dybcio
2025-09-11 11:09   ` Imran Shaik
2025-09-11 11:39   ` Luca Weiss [this message]
2025-09-12 10:09   ` Bryan O'Donoghue
2025-09-11  1:12 ` [PATCH 3/6] clk: qcom: camcc-sdm845: " Vladimir Zapolskiy
2025-09-11  9:28   ` Konrad Dybcio
2025-09-11 11:09   ` Imran Shaik
2025-09-12 10:13   ` Bryan O'Donoghue
2025-09-12 10:14   ` Bryan O'Donoghue
2025-09-11  1:12 ` [PATCH 4/6] clk: qcom: camcc-sm7150: Specify Titan GDSC power domain as a parent to IPEx and BPS Vladimir Zapolskiy
2025-09-11  9:28   ` Konrad Dybcio
2025-09-11 11:09   ` Imran Shaik
2025-09-12 10:13   ` Bryan O'Donoghue
2025-09-12 10:14   ` Bryan O'Donoghue
2025-09-11  1:12 ` [PATCH 5/6] clk: qcom: camcc-sm8250: Specify Titan GDSC power domain as a parent to IPE/BPS/SBI Vladimir Zapolskiy
2025-09-11  9:28   ` Konrad Dybcio
2025-09-11 11:09   ` Imran Shaik
2025-09-12 10:15   ` Bryan O'Donoghue
2025-09-11  1:12 ` [PATCH 6/6] clk: qcom: camcc-sm8450: " Vladimir Zapolskiy
2025-09-11  9:29   ` Konrad Dybcio
2025-09-11 11:09   ` Imran Shaik
2025-09-12 10:16   ` Bryan O'Donoghue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DCPXXM9P6F0V.5COAK4KHJHZI@fairphone.com \
    --to=luca.weiss@fairphone.com \
    --cc=andersson@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=quic_jkona@quicinc.com \
    --cc=quic_tdas@quicinc.com \
    --cc=sboyd@kernel.org \
    --cc=vladimir.zapolskiy@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox