* [PATCH] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock
@ 2022-07-14 20:38 Marijn Suijten
2022-07-28 0:31 ` Stephen Boyd
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Marijn Suijten @ 2022-07-14 20:38 UTC (permalink / raw)
To: phone-devel
Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
Konrad Dybcio, Martin Botka, Jami Kettunen, Marijn Suijten,
Andy Gross, Bjorn Andersson, Michael Turquette, Stephen Boyd,
Taniya Das, Rob Herring, Craig Tatlor, linux-arm-msm, linux-clk,
linux-kernel
In commit 3f905469c8ce ("clk: qcom: gcc: Use floor ops for SDCC clocks")
floor ops were applied to SDCC2 only, but flooring is also required on
the SDCC1 apps clock which is used by the eMMC card on Sony's Nile
platform, and otherwise result in the typicial "Card appears
overclocked" warnings observed on many other platforms before:
mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
mmc0: Card appears overclocked; req 104000000 Hz, actual 192000000 Hz
Fixes: f2a76a2955c0 ("clk: qcom: Add Global Clock controller (GCC) driver for SDM660")
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
---
drivers/clk/qcom/gcc-sdm660.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/qcom/gcc-sdm660.c b/drivers/clk/qcom/gcc-sdm660.c
index 429d12193146..04b427b577a1 100644
--- a/drivers/clk/qcom/gcc-sdm660.c
+++ b/drivers/clk/qcom/gcc-sdm660.c
@@ -743,7 +743,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = {
.name = "sdcc1_apps_clk_src",
.parent_data = gcc_parent_data_xo_gpll0_gpll4_gpll0_early_div,
.num_parents = ARRAY_SIZE(gcc_parent_data_xo_gpll0_gpll4_gpll0_early_div),
- .ops = &clk_rcg2_ops,
+ .ops = &clk_rcg2_floor_ops,
},
};
--
2.37.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock
2022-07-14 20:38 [PATCH] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock Marijn Suijten
@ 2022-07-28 0:31 ` Stephen Boyd
2022-08-04 1:29 ` Alexey Minnekhanov
2022-08-29 23:46 ` Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2022-07-28 0:31 UTC (permalink / raw)
To: Marijn Suijten, phone-devel
Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
Konrad Dybcio, Martin Botka, Jami Kettunen, Marijn Suijten,
Andy Gross, Bjorn Andersson, Michael Turquette, Taniya Das,
Rob Herring, Craig Tatlor, linux-arm-msm, linux-clk,
linux-kernel
Quoting Marijn Suijten (2022-07-14 13:38:22)
> In commit 3f905469c8ce ("clk: qcom: gcc: Use floor ops for SDCC clocks")
> floor ops were applied to SDCC2 only, but flooring is also required on
> the SDCC1 apps clock which is used by the eMMC card on Sony's Nile
> platform, and otherwise result in the typicial "Card appears
> overclocked" warnings observed on many other platforms before:
>
> mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc0: Card appears overclocked; req 104000000 Hz, actual 192000000 Hz
>
> Fixes: f2a76a2955c0 ("clk: qcom: Add Global Clock controller (GCC) driver for SDM660")
> Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
> ---
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock
2022-07-14 20:38 [PATCH] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock Marijn Suijten
2022-07-28 0:31 ` Stephen Boyd
@ 2022-08-04 1:29 ` Alexey Minnekhanov
2022-08-29 23:46 ` Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Alexey Minnekhanov @ 2022-08-04 1:29 UTC (permalink / raw)
To: Marijn Suijten, phone-devel
Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
Konrad Dybcio, Martin Botka, Jami Kettunen, Bjorn Andersson,
Stephen Boyd, Taniya Das, linux-arm-msm, linux-clk, linux-kernel
On 7/14/22 23:38, Marijn Suijten wrote:
> In commit 3f905469c8ce ("clk: qcom: gcc: Use floor ops for SDCC clocks")
> floor ops were applied to SDCC2 only, but flooring is also required on
> the SDCC1 apps clock which is used by the eMMC card on Sony's Nile
> platform, and otherwise result in the typicial "Card appears
> overclocked" warnings observed on many other platforms before:
>
> mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc0: Card appears overclocked; req 104000000 Hz, actual 192000000 Hz
>
> Fixes: f2a76a2955c0 ("clk: qcom: Add Global Clock controller (GCC) driver for SDM660")
> Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
>
Tried this on my SDM660 xiaomi-lavender, warnings are gone, thanks!
Tested-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock
2022-07-14 20:38 [PATCH] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock Marijn Suijten
2022-07-28 0:31 ` Stephen Boyd
2022-08-04 1:29 ` Alexey Minnekhanov
@ 2022-08-29 23:46 ` Bjorn Andersson
2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2022-08-29 23:46 UTC (permalink / raw)
To: Marijn Suijten, phone-devel
Cc: tdas, AngeloGioacchino Del Regno, linux-arm-msm, linux-clk,
mturquette, ~postmarketos/upstreaming, jami.kettunen,
linux-kernel, konrad.dybcio, robh, Martin Botka, ctatlor97,
agross, sboyd
On Thu, 14 Jul 2022 22:38:22 +0200, Marijn Suijten wrote:
> In commit 3f905469c8ce ("clk: qcom: gcc: Use floor ops for SDCC clocks")
> floor ops were applied to SDCC2 only, but flooring is also required on
> the SDCC1 apps clock which is used by the eMMC card on Sony's Nile
> platform, and otherwise result in the typicial "Card appears
> overclocked" warnings observed on many other platforms before:
>
> mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc0: Card appears overclocked; req 104000000 Hz, actual 192000000 Hz
>
> [...]
Applied, thanks!
[1/1] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock
commit: 6956c18f4ad9200aa945f7ea37d65a05afc49d51
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-29 23:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-14 20:38 [PATCH] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock Marijn Suijten
2022-07-28 0:31 ` Stephen Boyd
2022-08-04 1:29 ` Alexey Minnekhanov
2022-08-29 23:46 ` Bjorn Andersson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.