* [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops
@ 2025-10-29 9:37 Taniya Das
2025-10-29 9:47 ` Konrad Dybcio
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Taniya Das @ 2025-10-29 9:37 UTC (permalink / raw)
To: Bjorn Andersson, Michael Turquette, Stephen Boyd,
Dmitry Baryshkov, Taniya Das
Cc: linux-arm-msm, linux-clk, linux-kernel, Ajit Pandey, Imran Shaik,
Jagadeesh Kona, Abel Vesa, Taniya Das
Fix "gcc_sdcc2_apps_clk_src: rcg didn't update its configuration" during
boot. This happens due to the floor_ops tries to update the rcg
configuration even if the clock is not enabled.
The shared_floor_ops ensures that the RCG is safely parked and the new
parent configuration is cached in the parked_cfg when the clock is off.
Ensure to use the ops for the other SDCC clock instances as well.
Fixes: 39d6dcf67fe9 ("clk: qcom: gcc: Add support for QCS615 GCC clocks")
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
---
Changes in v3:
- Update commit subject gcc->gcc-qcs615 [Konrad]
- Add RB-by from [Abel]
- Link to v2: https://lore.kernel.org/r/20251024-sdcc_rcg2_shared_ops-v2-1-8fd5daca9cd2@oss.qualcomm.com
Changes in v2:
- Update the commit message as per comment [Dmitry, Konrad]
- Link to v1: https://lore.kernel.org/r/20250804-sdcc_rcg2_shared_ops-v1-1-41f989e8cbb1@oss.qualcomm.com
---
drivers/clk/qcom/gcc-qcs615.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/qcom/gcc-qcs615.c b/drivers/clk/qcom/gcc-qcs615.c
index 9695446bc2a3c81f63f6fc0c98d298270f3494cc..5b3b8dd4f114bdcb8911a9ce612c39a1c6e05b23 100644
--- a/drivers/clk/qcom/gcc-qcs615.c
+++ b/drivers/clk/qcom/gcc-qcs615.c
@@ -784,7 +784,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
.name = "gcc_sdcc1_apps_clk_src",
.parent_data = gcc_parent_data_1,
.num_parents = ARRAY_SIZE(gcc_parent_data_1),
- .ops = &clk_rcg2_floor_ops,
+ .ops = &clk_rcg2_shared_floor_ops,
},
};
@@ -806,7 +806,7 @@ static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = {
.name = "gcc_sdcc1_ice_core_clk_src",
.parent_data = gcc_parent_data_0,
.num_parents = ARRAY_SIZE(gcc_parent_data_0),
- .ops = &clk_rcg2_floor_ops,
+ .ops = &clk_rcg2_shared_floor_ops,
},
};
@@ -830,7 +830,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
.name = "gcc_sdcc2_apps_clk_src",
.parent_data = gcc_parent_data_8,
.num_parents = ARRAY_SIZE(gcc_parent_data_8),
- .ops = &clk_rcg2_floor_ops,
+ .ops = &clk_rcg2_shared_floor_ops,
},
};
---
base-commit: 5c5a10f0be967a8950a2309ea965bae54251b50e
change-id: 20250804-sdcc_rcg2_shared_ops-ea6e26185fe6
Best regards,
--
Taniya Das <taniya.das@oss.qualcomm.com>
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops
2025-10-29 9:37 [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops Taniya Das
@ 2025-10-29 9:47 ` Konrad Dybcio
2025-10-29 10:31 ` Taniya Das
2025-10-30 5:10 ` Imran Shaik
2025-10-30 16:25 ` Bjorn Andersson
2 siblings, 1 reply; 6+ messages in thread
From: Konrad Dybcio @ 2025-10-29 9:47 UTC (permalink / raw)
To: Taniya Das, Bjorn Andersson, Michael Turquette, Stephen Boyd,
Dmitry Baryshkov, Taniya Das
Cc: linux-arm-msm, linux-clk, linux-kernel, Ajit Pandey, Imran Shaik,
Jagadeesh Kona, Abel Vesa
On 10/29/25 10:37 AM, Taniya Das wrote:
> Fix "gcc_sdcc2_apps_clk_src: rcg didn't update its configuration" during
> boot. This happens due to the floor_ops tries to update the rcg
> configuration even if the clock is not enabled.
> The shared_floor_ops ensures that the RCG is safely parked and the new
> parent configuration is cached in the parked_cfg when the clock is off.
>
> Ensure to use the ops for the other SDCC clock instances as well.
>
> Fixes: 39d6dcf67fe9 ("clk: qcom: gcc: Add support for QCS615 GCC clocks")
> Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
> Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
> ---
I noticed none of SM8[1234567]50 / hamoa / glymur uses _shared_ here..
I see that e.g. SM8250's downstream sets it though - should some of
these be fixed up too?
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops
2025-10-29 9:47 ` Konrad Dybcio
@ 2025-10-29 10:31 ` Taniya Das
2025-10-30 9:17 ` Konrad Dybcio
0 siblings, 1 reply; 6+ messages in thread
From: Taniya Das @ 2025-10-29 10:31 UTC (permalink / raw)
To: Konrad Dybcio, Taniya Das, Bjorn Andersson, Michael Turquette,
Stephen Boyd, Dmitry Baryshkov
Cc: linux-arm-msm, linux-clk, linux-kernel, Ajit Pandey, Imran Shaik,
Jagadeesh Kona, Abel Vesa
On 10/29/2025 3:17 PM, Konrad Dybcio wrote:
> I noticed none of SM8[1234567]50 / hamoa / glymur uses _shared_ here..
>
> I see that e.g. SM8250's downstream sets it though - should some of
> these be fixed up too?
I wanted to fix them as well, just trying to check the downstream
history of these clocks and then update them.
Regards,
Taniya.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops
2025-10-29 9:37 [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops Taniya Das
2025-10-29 9:47 ` Konrad Dybcio
@ 2025-10-30 5:10 ` Imran Shaik
2025-10-30 16:25 ` Bjorn Andersson
2 siblings, 0 replies; 6+ messages in thread
From: Imran Shaik @ 2025-10-30 5:10 UTC (permalink / raw)
To: Taniya Das, Bjorn Andersson, Michael Turquette, Stephen Boyd,
Dmitry Baryshkov, Taniya Das
Cc: linux-arm-msm, linux-clk, linux-kernel, Ajit Pandey,
Jagadeesh Kona, Abel Vesa
On 10/29/2025 3:07 PM, Taniya Das wrote:
> Fix "gcc_sdcc2_apps_clk_src: rcg didn't update its configuration" during
> boot. This happens due to the floor_ops tries to update the rcg
> configuration even if the clock is not enabled.
> The shared_floor_ops ensures that the RCG is safely parked and the new
> parent configuration is cached in the parked_cfg when the clock is off.
>
> Ensure to use the ops for the other SDCC clock instances as well.
>
> Fixes: 39d6dcf67fe9 ("clk: qcom: gcc: Add support for QCS615 GCC clocks")
> Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
> Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
> ---
> Changes in v3:
> - Update commit subject gcc->gcc-qcs615 [Konrad]
> - Add RB-by from [Abel]
> - Link to v2: https://lore.kernel.org/r/20251024-sdcc_rcg2_shared_ops-v2-1-8fd5daca9cd2@oss.qualcomm.com
>
> Changes in v2:
> - Update the commit message as per comment [Dmitry, Konrad]
> - Link to v1: https://lore.kernel.org/r/20250804-sdcc_rcg2_shared_ops-v1-1-41f989e8cbb1@oss.qualcomm.com
> ---
> drivers/clk/qcom/gcc-qcs615.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
>
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
Thanks,
Imran
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops
2025-10-29 10:31 ` Taniya Das
@ 2025-10-30 9:17 ` Konrad Dybcio
0 siblings, 0 replies; 6+ messages in thread
From: Konrad Dybcio @ 2025-10-30 9:17 UTC (permalink / raw)
To: Taniya Das, Taniya Das, Bjorn Andersson, Michael Turquette,
Stephen Boyd, Dmitry Baryshkov
Cc: linux-arm-msm, linux-clk, linux-kernel, Ajit Pandey, Imran Shaik,
Jagadeesh Kona, Abel Vesa
On 10/29/25 11:31 AM, Taniya Das wrote:
>
>
> On 10/29/2025 3:17 PM, Konrad Dybcio wrote:
>> I noticed none of SM8[1234567]50 / hamoa / glymur uses _shared_ here..
>>
>> I see that e.g. SM8250's downstream sets it though - should some of
>> these be fixed up too?
>
> I wanted to fix them as well, just trying to check the downstream
> history of these clocks and then update them.
Nice, thanks
Konrad
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops
2025-10-29 9:37 [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops Taniya Das
2025-10-29 9:47 ` Konrad Dybcio
2025-10-30 5:10 ` Imran Shaik
@ 2025-10-30 16:25 ` Bjorn Andersson
2 siblings, 0 replies; 6+ messages in thread
From: Bjorn Andersson @ 2025-10-30 16:25 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Dmitry Baryshkov, Taniya Das,
Taniya Das
Cc: linux-arm-msm, linux-clk, linux-kernel, Ajit Pandey, Imran Shaik,
Jagadeesh Kona, Abel Vesa
On Wed, 29 Oct 2025 15:07:54 +0530, Taniya Das wrote:
> Fix "gcc_sdcc2_apps_clk_src: rcg didn't update its configuration" during
> boot. This happens due to the floor_ops tries to update the rcg
> configuration even if the clock is not enabled.
> The shared_floor_ops ensures that the RCG is safely parked and the new
> parent configuration is cached in the parked_cfg when the clock is off.
>
> Ensure to use the ops for the other SDCC clock instances as well.
>
> [...]
Applied, thanks!
[1/1] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops
commit: 0820c9373369c83de5202871d02682d583a91a9c
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-10-30 16:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-29 9:37 [PATCH v3] clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops Taniya Das
2025-10-29 9:47 ` Konrad Dybcio
2025-10-29 10:31 ` Taniya Das
2025-10-30 9:17 ` Konrad Dybcio
2025-10-30 5:10 ` Imran Shaik
2025-10-30 16:25 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox