[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <71704270-5342-ab54-79f5-cdc817ddb255@linaro.org>
Date: Mon, 2 Jan 2023 17:04:51 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Srinivasa Rao Mandadapu <quic_srivasam@...cinc.com>,
swboyd@...omium.org, agross@...nel.org, andersson@...nel.org,
robh+dt@...nel.org, broonie@...nel.org, quic_plai@...cinc.com,
krzysztof.kozlowski+dt@...aro.org, konrad.dybcio@...ainline.org,
mturquette@...libre.com, sboyd@...nel.org,
linux-arm-msm@...r.kernel.org, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org, quic_rohkumar@...cinc.com
Subject: Re: [PATCH v2 3/4] clk: qcom: lpasscc-sc7280: Remove qdsp6ss clock
control
On 30/12/2022 14:43, Srinivasa Rao Mandadapu wrote:
> The qdsp6ss memory region is being shared by ADSP remoteproc device and
> lpasscc clock device, hence causing memory conflict.
> As the qdsp6ss clocks are being enabled in remoteproc driver,
> remove clock controlling in the clock driver.
>
> Fixes: 4ab43d171181 ("clk: qcom: Add lpass clock controller driver for SC7280")
>
> Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@...cinc.com>
> Tested-by: Mohammad Rafi Shaik <quic_mohs@...cinc.com>
> ---
> drivers/clk/qcom/lpasscc-sc7280.c | 63 +--------------------------------------
> 1 file changed, 1 insertion(+), 62 deletions(-)
>
> diff --git a/drivers/clk/qcom/lpasscc-sc7280.c b/drivers/clk/qcom/lpasscc-sc7280.c
> index 5c1e17b..87e1c21 100644
> --- a/drivers/clk/qcom/lpasscc-sc7280.c
> +++ b/drivers/clk/qcom/lpasscc-sc7280.c
> @@ -30,48 +30,6 @@ static struct clk_branch lpass_top_cc_lpi_q6_axim_hs_clk = {
> },
> };
>
> -static struct clk_branch lpass_qdsp6ss_core_clk = {
> - .halt_reg = 0x20,
> - /* CLK_OFF would not toggle until LPASS is out of reset */
> - .halt_check = BRANCH_HALT_SKIP,
> - .clkr = {
> - .enable_reg = 0x20,
> - .enable_mask = BIT(0),
> - .hw.init = &(struct clk_init_data){
> - .name = "lpass_qdsp6ss_core_clk",
> - .ops = &clk_branch2_ops,
> - },
> - },
> -};
> -
> -static struct clk_branch lpass_qdsp6ss_xo_clk = {
> - .halt_reg = 0x38,
> - /* CLK_OFF would not toggle until LPASS is out of reset */
> - .halt_check = BRANCH_HALT_SKIP,
> - .clkr = {
> - .enable_reg = 0x38,
> - .enable_mask = BIT(0),
> - .hw.init = &(struct clk_init_data){
> - .name = "lpass_qdsp6ss_xo_clk",
> - .ops = &clk_branch2_ops,
> - },
> - },
> -};
> -
> -static struct clk_branch lpass_qdsp6ss_sleep_clk = {
> - .halt_reg = 0x3c,
> - /* CLK_OFF would not toggle until LPASS is out of reset */
> - .halt_check = BRANCH_HALT_SKIP,
> - .clkr = {
> - .enable_reg = 0x3c,
> - .enable_mask = BIT(0),
> - .hw.init = &(struct clk_init_data){
> - .name = "lpass_qdsp6ss_sleep_clk",
> - .ops = &clk_branch2_ops,
> - },
> - },
> -};
> -
> static struct regmap_config lpass_regmap_config = {
> .reg_bits = 32,
> .reg_stride = 4,
> @@ -90,18 +48,6 @@ static const struct qcom_cc_desc lpass_cc_top_sc7280_desc = {
> .num_clks = ARRAY_SIZE(lpass_cc_top_sc7280_clocks),
> };
>
> -static struct clk_regmap *lpass_qdsp6ss_sc7280_clocks[] = {
> - [LPASS_QDSP6SS_XO_CLK] = &lpass_qdsp6ss_xo_clk.clkr,
> - [LPASS_QDSP6SS_SLEEP_CLK] = &lpass_qdsp6ss_sleep_clk.clkr,
> - [LPASS_QDSP6SS_CORE_CLK] = &lpass_qdsp6ss_core_clk.clkr,
> -};
> -
> -static const struct qcom_cc_desc lpass_qdsp6ss_sc7280_desc = {
> - .config = &lpass_regmap_config,
> - .clks = lpass_qdsp6ss_sc7280_clocks,
> - .num_clks = ARRAY_SIZE(lpass_qdsp6ss_sc7280_clocks),
> -};
> -
> static int lpass_cc_sc7280_probe(struct platform_device *pdev)
> {
> const struct qcom_cc_desc *desc;
> @@ -118,17 +64,10 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev)
> goto destroy_pm_clk;
> }
>
> - lpass_regmap_config.name = "qdsp6ss";
> - desc = &lpass_qdsp6ss_sc7280_desc;
> -
> - ret = qcom_cc_probe_by_index(pdev, 0, desc);
> - if (ret)
> - goto destroy_pm_clk;
> -
> lpass_regmap_config.name = "top_cc";
> desc = &lpass_cc_top_sc7280_desc;
>
> - ret = qcom_cc_probe_by_index(pdev, 1, desc);
> + ret = qcom_cc_probe_by_index(pdev, 0, desc);
ABI break but actually does not work with upstream either. DTS at this
point has here on index "0" different address and you probe now top_cc
on it.
Best regards,
Krzysztof
Powered by blists - more mailing lists