* [PATCH 1/2] clk: qcom: gcc-sm8550: Use floor ops for SDCC RCGs
2025-11-24 21:20 [PATCH 0/2] clk: qcom: gcc-sm8x50: Use floor ops for SDCC RCGs Vladimir Zapolskiy
@ 2025-11-24 21:20 ` Vladimir Zapolskiy
2025-11-25 6:36 ` Taniya Das
2025-11-25 7:06 ` Neil Armstrong
2025-11-24 21:20 ` [PATCH 2/2] clk: qcom: gcc-sm8650: " Vladimir Zapolskiy
2026-01-05 14:07 ` [PATCH 0/2] clk: qcom: gcc-sm8x50: " Bjorn Andersson
2 siblings, 2 replies; 8+ messages in thread
From: Vladimir Zapolskiy @ 2025-11-24 21:20 UTC (permalink / raw)
To: Bjorn Andersson, Michael Turquette, Stephen Boyd
Cc: Konrad Dybcio, Neil Armstrong, Abel Vesa, linux-arm-msm,
linux-clk
In line with commit a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops
for SDCC RCGs") done to fix issues with overclocked SD cards on SM8450
powered boards set floor clock operations for SDCC RCGs on SM8550.
This change fixes initialization of some SD cards, where the problem
is manifested by the SDHC driver:
mmc0: Card appears overclocked; req 50000000 Hz, actual 100000000 Hz
mmc0: error -110 whilst initialising SD card
Fixes: 955f2ea3b9e9 ("clk: qcom: Add GCC driver for SM8550")
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
---
drivers/clk/qcom/gcc-sm8550.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/qcom/gcc-sm8550.c b/drivers/clk/qcom/gcc-sm8550.c
index 862a9bf73bcb..36a5b7de5b55 100644
--- a/drivers/clk/qcom/gcc-sm8550.c
+++ b/drivers/clk/qcom/gcc-sm8550.c
@@ -1025,7 +1025,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
.parent_data = gcc_parent_data_9,
.num_parents = ARRAY_SIZE(gcc_parent_data_9),
.flags = CLK_SET_RATE_PARENT,
- .ops = &clk_rcg2_shared_ops,
+ .ops = &clk_rcg2_shared_floor_ops,
},
};
@@ -1048,7 +1048,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
.parent_data = gcc_parent_data_0,
.num_parents = ARRAY_SIZE(gcc_parent_data_0),
.flags = CLK_SET_RATE_PARENT,
- .ops = &clk_rcg2_shared_ops,
+ .ops = &clk_rcg2_shared_floor_ops,
},
};
--
2.49.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 1/2] clk: qcom: gcc-sm8550: Use floor ops for SDCC RCGs
2025-11-24 21:20 ` [PATCH 1/2] clk: qcom: gcc-sm8550: " Vladimir Zapolskiy
@ 2025-11-25 6:36 ` Taniya Das
2025-11-25 7:06 ` Neil Armstrong
1 sibling, 0 replies; 8+ messages in thread
From: Taniya Das @ 2025-11-25 6:36 UTC (permalink / raw)
To: Vladimir Zapolskiy, Bjorn Andersson, Michael Turquette,
Stephen Boyd
Cc: Konrad Dybcio, Neil Armstrong, Abel Vesa, linux-arm-msm,
linux-clk
On 11/25/2025 2:50 AM, Vladimir Zapolskiy wrote:
> In line with commit a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops
> for SDCC RCGs") done to fix issues with overclocked SD cards on SM8450
> powered boards set floor clock operations for SDCC RCGs on SM8550.
>
> This change fixes initialization of some SD cards, where the problem
> is manifested by the SDHC driver:
>
> mmc0: Card appears overclocked; req 50000000 Hz, actual 100000000 Hz
> mmc0: error -110 whilst initialising SD card
>
> Fixes: 955f2ea3b9e9 ("clk: qcom: Add GCC driver for SM8550")
> Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
> ---
> drivers/clk/qcom/gcc-sm8550.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/qcom/gcc-sm8550.c b/drivers/clk/qcom/gcc-sm8550.c
> index 862a9bf73bcb..36a5b7de5b55 100644
> --- a/drivers/clk/qcom/gcc-sm8550.c
> +++ b/drivers/clk/qcom/gcc-sm8550.c
> @@ -1025,7 +1025,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
> .parent_data = gcc_parent_data_9,
> .num_parents = ARRAY_SIZE(gcc_parent_data_9),
> .flags = CLK_SET_RATE_PARENT,
> - .ops = &clk_rcg2_shared_ops,
> + .ops = &clk_rcg2_shared_floor_ops,
> },
> };
>
> @@ -1048,7 +1048,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
> .parent_data = gcc_parent_data_0,
> .num_parents = ARRAY_SIZE(gcc_parent_data_0),
> .flags = CLK_SET_RATE_PARENT,
> - .ops = &clk_rcg2_shared_ops,
> + .ops = &clk_rcg2_shared_floor_ops,
> },
> };
>
Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
--
Thanks,
Taniya Das
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 1/2] clk: qcom: gcc-sm8550: Use floor ops for SDCC RCGs
2025-11-24 21:20 ` [PATCH 1/2] clk: qcom: gcc-sm8550: " Vladimir Zapolskiy
2025-11-25 6:36 ` Taniya Das
@ 2025-11-25 7:06 ` Neil Armstrong
1 sibling, 0 replies; 8+ messages in thread
From: Neil Armstrong @ 2025-11-25 7:06 UTC (permalink / raw)
To: Vladimir Zapolskiy, Bjorn Andersson, Michael Turquette,
Stephen Boyd
Cc: Konrad Dybcio, Abel Vesa, linux-arm-msm, linux-clk
On 11/24/25 22:20, Vladimir Zapolskiy wrote:
> In line with commit a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops
> for SDCC RCGs") done to fix issues with overclocked SD cards on SM8450
> powered boards set floor clock operations for SDCC RCGs on SM8550.
>
> This change fixes initialization of some SD cards, where the problem
> is manifested by the SDHC driver:
>
> mmc0: Card appears overclocked; req 50000000 Hz, actual 100000000 Hz
> mmc0: error -110 whilst initialising SD card
>
> Fixes: 955f2ea3b9e9 ("clk: qcom: Add GCC driver for SM8550")
> Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
> ---
> drivers/clk/qcom/gcc-sm8550.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/qcom/gcc-sm8550.c b/drivers/clk/qcom/gcc-sm8550.c
> index 862a9bf73bcb..36a5b7de5b55 100644
> --- a/drivers/clk/qcom/gcc-sm8550.c
> +++ b/drivers/clk/qcom/gcc-sm8550.c
> @@ -1025,7 +1025,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
> .parent_data = gcc_parent_data_9,
> .num_parents = ARRAY_SIZE(gcc_parent_data_9),
> .flags = CLK_SET_RATE_PARENT,
> - .ops = &clk_rcg2_shared_ops,
> + .ops = &clk_rcg2_shared_floor_ops,
> },
> };
>
> @@ -1048,7 +1048,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
> .parent_data = gcc_parent_data_0,
> .num_parents = ARRAY_SIZE(gcc_parent_data_0),
> .flags = CLK_SET_RATE_PARENT,
> - .ops = &clk_rcg2_shared_ops,
> + .ops = &clk_rcg2_shared_floor_ops,
> },
> };
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] clk: qcom: gcc-sm8650: Use floor ops for SDCC RCGs
2025-11-24 21:20 [PATCH 0/2] clk: qcom: gcc-sm8x50: Use floor ops for SDCC RCGs Vladimir Zapolskiy
2025-11-24 21:20 ` [PATCH 1/2] clk: qcom: gcc-sm8550: " Vladimir Zapolskiy
@ 2025-11-24 21:20 ` Vladimir Zapolskiy
2025-11-25 6:37 ` Taniya Das
2025-11-25 7:06 ` Neil Armstrong
2026-01-05 14:07 ` [PATCH 0/2] clk: qcom: gcc-sm8x50: " Bjorn Andersson
2 siblings, 2 replies; 8+ messages in thread
From: Vladimir Zapolskiy @ 2025-11-24 21:20 UTC (permalink / raw)
To: Bjorn Andersson, Michael Turquette, Stephen Boyd
Cc: Konrad Dybcio, Neil Armstrong, Abel Vesa, linux-arm-msm,
linux-clk
In line with commit a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops
for SDCC RCGs") done to fix issues with overclocked SD cards on SM8450
powered boards set floor clock operations for SDCC RCGs on SM8650.
This change fixes initialization of some SD cards, where the problem
is manifested by the SDHC driver:
mmc0: Card appears overclocked; req 50000000 Hz, actual 100000000 Hz
mmc0: error -110 whilst initialising SD card
Fixes: c58225b7e3d7 ("clk: qcom: add the SM8650 Global Clock Controller driver, part 1")
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
---
drivers/clk/qcom/gcc-sm8650.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/qcom/gcc-sm8650.c b/drivers/clk/qcom/gcc-sm8650.c
index 24f98062b9dd..2dd6444ce036 100644
--- a/drivers/clk/qcom/gcc-sm8650.c
+++ b/drivers/clk/qcom/gcc-sm8650.c
@@ -1257,7 +1257,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
.parent_data = gcc_parent_data_11,
.num_parents = ARRAY_SIZE(gcc_parent_data_11),
.flags = CLK_SET_RATE_PARENT,
- .ops = &clk_rcg2_shared_ops,
+ .ops = &clk_rcg2_shared_floor_ops,
},
};
@@ -1279,7 +1279,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
.parent_data = gcc_parent_data_0,
.num_parents = ARRAY_SIZE(gcc_parent_data_0),
.flags = CLK_SET_RATE_PARENT,
- .ops = &clk_rcg2_shared_ops,
+ .ops = &clk_rcg2_shared_floor_ops,
},
};
--
2.49.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 2/2] clk: qcom: gcc-sm8650: Use floor ops for SDCC RCGs
2025-11-24 21:20 ` [PATCH 2/2] clk: qcom: gcc-sm8650: " Vladimir Zapolskiy
@ 2025-11-25 6:37 ` Taniya Das
2025-11-25 7:06 ` Neil Armstrong
1 sibling, 0 replies; 8+ messages in thread
From: Taniya Das @ 2025-11-25 6:37 UTC (permalink / raw)
To: Vladimir Zapolskiy, Bjorn Andersson, Michael Turquette,
Stephen Boyd
Cc: Konrad Dybcio, Neil Armstrong, Abel Vesa, linux-arm-msm,
linux-clk
On 11/25/2025 2:50 AM, Vladimir Zapolskiy wrote:
> In line with commit a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops
> for SDCC RCGs") done to fix issues with overclocked SD cards on SM8450
> powered boards set floor clock operations for SDCC RCGs on SM8650.
>
> This change fixes initialization of some SD cards, where the problem
> is manifested by the SDHC driver:
>
> mmc0: Card appears overclocked; req 50000000 Hz, actual 100000000 Hz
> mmc0: error -110 whilst initialising SD card
>
> Fixes: c58225b7e3d7 ("clk: qcom: add the SM8650 Global Clock Controller driver, part 1")
> Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
> ---
> drivers/clk/qcom/gcc-sm8650.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/qcom/gcc-sm8650.c b/drivers/clk/qcom/gcc-sm8650.c
> index 24f98062b9dd..2dd6444ce036 100644
> --- a/drivers/clk/qcom/gcc-sm8650.c
> +++ b/drivers/clk/qcom/gcc-sm8650.c
> @@ -1257,7 +1257,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
> .parent_data = gcc_parent_data_11,
> .num_parents = ARRAY_SIZE(gcc_parent_data_11),
> .flags = CLK_SET_RATE_PARENT,
> - .ops = &clk_rcg2_shared_ops,
> + .ops = &clk_rcg2_shared_floor_ops,
> },
> };
>
> @@ -1279,7 +1279,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
> .parent_data = gcc_parent_data_0,
> .num_parents = ARRAY_SIZE(gcc_parent_data_0),
> .flags = CLK_SET_RATE_PARENT,
> - .ops = &clk_rcg2_shared_ops,
> + .ops = &clk_rcg2_shared_floor_ops,
> },
> };
>
Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
--
Thanks,
Taniya Das
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 2/2] clk: qcom: gcc-sm8650: Use floor ops for SDCC RCGs
2025-11-24 21:20 ` [PATCH 2/2] clk: qcom: gcc-sm8650: " Vladimir Zapolskiy
2025-11-25 6:37 ` Taniya Das
@ 2025-11-25 7:06 ` Neil Armstrong
1 sibling, 0 replies; 8+ messages in thread
From: Neil Armstrong @ 2025-11-25 7:06 UTC (permalink / raw)
To: Vladimir Zapolskiy, Bjorn Andersson, Michael Turquette,
Stephen Boyd
Cc: Konrad Dybcio, Abel Vesa, linux-arm-msm, linux-clk
On 11/24/25 22:20, Vladimir Zapolskiy wrote:
> In line with commit a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops
> for SDCC RCGs") done to fix issues with overclocked SD cards on SM8450
> powered boards set floor clock operations for SDCC RCGs on SM8650.
>
> This change fixes initialization of some SD cards, where the problem
> is manifested by the SDHC driver:
>
> mmc0: Card appears overclocked; req 50000000 Hz, actual 100000000 Hz
> mmc0: error -110 whilst initialising SD card
>
> Fixes: c58225b7e3d7 ("clk: qcom: add the SM8650 Global Clock Controller driver, part 1")
> Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
> ---
> drivers/clk/qcom/gcc-sm8650.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/qcom/gcc-sm8650.c b/drivers/clk/qcom/gcc-sm8650.c
> index 24f98062b9dd..2dd6444ce036 100644
> --- a/drivers/clk/qcom/gcc-sm8650.c
> +++ b/drivers/clk/qcom/gcc-sm8650.c
> @@ -1257,7 +1257,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
> .parent_data = gcc_parent_data_11,
> .num_parents = ARRAY_SIZE(gcc_parent_data_11),
> .flags = CLK_SET_RATE_PARENT,
> - .ops = &clk_rcg2_shared_ops,
> + .ops = &clk_rcg2_shared_floor_ops,
> },
> };
>
> @@ -1279,7 +1279,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
> .parent_data = gcc_parent_data_0,
> .num_parents = ARRAY_SIZE(gcc_parent_data_0),
> .flags = CLK_SET_RATE_PARENT,
> - .ops = &clk_rcg2_shared_ops,
> + .ops = &clk_rcg2_shared_floor_ops,
> },
> };
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] clk: qcom: gcc-sm8x50: Use floor ops for SDCC RCGs
2025-11-24 21:20 [PATCH 0/2] clk: qcom: gcc-sm8x50: Use floor ops for SDCC RCGs Vladimir Zapolskiy
2025-11-24 21:20 ` [PATCH 1/2] clk: qcom: gcc-sm8550: " Vladimir Zapolskiy
2025-11-24 21:20 ` [PATCH 2/2] clk: qcom: gcc-sm8650: " Vladimir Zapolskiy
@ 2026-01-05 14:07 ` Bjorn Andersson
2 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2026-01-05 14:07 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Vladimir Zapolskiy
Cc: Konrad Dybcio, Neil Armstrong, linux-arm-msm, linux-clk,
Abel Vesa
On Mon, 24 Nov 2025 23:20:10 +0200, Vladimir Zapolskiy wrote:
> In line with commit a27ac3806b0a ("clk: qcom: gcc-sm8450: Use floor ops
> for SDCC RCGs") done to fix issues with overclocked SD cards on SM8450
> powered boards set floor clock operations for SDCC RCGs on SM8550 and
> SM8650 powered boards, tested on SM8550-HDK and SM8650-HDK respectively.
>
> This change fixes initialization of some SD cards, where the problem
> is manifested by the SDHC driver:
>
> [...]
Applied, thanks!
[1/2] clk: qcom: gcc-sm8550: Use floor ops for SDCC RCGs
commit: 1c06e3956054fb5a0930f07b02726b1774b6c700
[2/2] clk: qcom: gcc-sm8650: Use floor ops for SDCC RCGs
commit: 8c4415fd17cd5979c31a4bf303acc702e9726033
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread