* [PATCH] clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk
@ 2021-02-24 17:50 Douglas Anderson
2021-03-01 17:00 ` Taniya Das
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Douglas Anderson @ 2021-02-24 17:50 UTC (permalink / raw)
To: sboyd
Cc: vbadigan, tdas, Douglas Anderson, Andy Gross, Bjorn Andersson,
Michael Turquette, linux-arm-msm, linux-clk, linux-kernel
While picking commit a8cd989e1a57 ("mmc: sdhci-msm: Warn about
overclocking SD/MMC") back to my tree I was surprised that it was
reporting warnings. I thought I fixed those! Looking closer at the
fix, I see that I totally bungled it (or at least I halfway bungled
it). The SD card clock got fixed (and that was the one I was really
focused on fixing), but I totally adjusted the wrong clock for eMMC.
Sigh. Let's fix my dumb mistake.
Now both SD and eMMC have floor for the "apps" clock.
This doesn't matter a lot for the final clock rate for HS400 eMMC but
could matter if someone happens to put some slower eMMC on a sc7180.
We also transition through some of these lower rates sometimes and
having them wrong could cause problems during these transitions.
These were the messages I was seeing at boot:
mmc1: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
mmc1: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
mmc1: Card appears overclocked; req 104000000 Hz, actual 192000000 Hz
Fixes: 6d37a8d19283 ("clk: qcom: gcc-sc7180: Use floor ops for sdcc clks")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
drivers/clk/qcom/gcc-sc7180.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c
index c5c2e93bda8e..5cacd20a31b3 100644
--- a/drivers/clk/qcom/gcc-sc7180.c
+++ b/drivers/clk/qcom/gcc-sc7180.c
@@ -620,7 +620,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
.name = "gcc_sdcc1_apps_clk_src",
.parent_data = gcc_parent_data_1,
.num_parents = 5,
- .ops = &clk_rcg2_ops,
+ .ops = &clk_rcg2_floor_ops,
},
};
@@ -642,7 +642,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 = 4,
- .ops = &clk_rcg2_floor_ops,
+ .ops = &clk_rcg2_ops,
},
};
--
2.30.0.617.g56c4b15f3c-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk
2021-02-24 17:50 [PATCH] clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk Douglas Anderson
@ 2021-03-01 17:00 ` Taniya Das
2021-03-13 21:00 ` Stephen Boyd
2021-05-26 19:03 ` patchwork-bot+linux-arm-msm
2 siblings, 0 replies; 4+ messages in thread
From: Taniya Das @ 2021-03-01 17:00 UTC (permalink / raw)
To: Douglas Anderson, sboyd
Cc: vbadigan, Andy Gross, Bjorn Andersson, Michael Turquette,
linux-arm-msm, linux-clk, linux-kernel
Reviewed-by: Taniya Das <tdas@codeaurora.org>
On 2/24/2021 11:20 PM, Douglas Anderson wrote:
> While picking commit a8cd989e1a57 ("mmc: sdhci-msm: Warn about
> overclocking SD/MMC") back to my tree I was surprised that it was
> reporting warnings. I thought I fixed those! Looking closer at the
> fix, I see that I totally bungled it (or at least I halfway bungled
> it). The SD card clock got fixed (and that was the one I was really
> focused on fixing), but I totally adjusted the wrong clock for eMMC.
> Sigh. Let's fix my dumb mistake.
>
> Now both SD and eMMC have floor for the "apps" clock.
>
> This doesn't matter a lot for the final clock rate for HS400 eMMC but
> could matter if someone happens to put some slower eMMC on a sc7180.
> We also transition through some of these lower rates sometimes and
> having them wrong could cause problems during these transitions.
> These were the messages I was seeing at boot:
> mmc1: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc1: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc1: Card appears overclocked; req 104000000 Hz, actual 192000000 Hz
>
> Fixes: 6d37a8d19283 ("clk: qcom: gcc-sc7180: Use floor ops for sdcc clks")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
>
> drivers/clk/qcom/gcc-sc7180.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c
> index c5c2e93bda8e..5cacd20a31b3 100644
> --- a/drivers/clk/qcom/gcc-sc7180.c
> +++ b/drivers/clk/qcom/gcc-sc7180.c
> @@ -620,7 +620,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
> .name = "gcc_sdcc1_apps_clk_src",
> .parent_data = gcc_parent_data_1,
> .num_parents = 5,
> - .ops = &clk_rcg2_ops,
> + .ops = &clk_rcg2_floor_ops,
> },
> };
>
> @@ -642,7 +642,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 = 4,
> - .ops = &clk_rcg2_floor_ops,
> + .ops = &clk_rcg2_ops,
> },
> };
>
>
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk
2021-02-24 17:50 [PATCH] clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk Douglas Anderson
2021-03-01 17:00 ` Taniya Das
@ 2021-03-13 21:00 ` Stephen Boyd
2021-05-26 19:03 ` patchwork-bot+linux-arm-msm
2 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2021-03-13 21:00 UTC (permalink / raw)
To: Douglas Anderson
Cc: vbadigan, tdas, Douglas Anderson, Andy Gross, Bjorn Andersson,
Michael Turquette, linux-arm-msm, linux-clk, linux-kernel
Quoting Douglas Anderson (2021-02-24 09:50:25)
> While picking commit a8cd989e1a57 ("mmc: sdhci-msm: Warn about
> overclocking SD/MMC") back to my tree I was surprised that it was
> reporting warnings. I thought I fixed those! Looking closer at the
> fix, I see that I totally bungled it (or at least I halfway bungled
> it). The SD card clock got fixed (and that was the one I was really
> focused on fixing), but I totally adjusted the wrong clock for eMMC.
> Sigh. Let's fix my dumb mistake.
>
> Now both SD and eMMC have floor for the "apps" clock.
>
> This doesn't matter a lot for the final clock rate for HS400 eMMC but
> could matter if someone happens to put some slower eMMC on a sc7180.
> We also transition through some of these lower rates sometimes and
> having them wrong could cause problems during these transitions.
> These were the messages I was seeing at boot:
> mmc1: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc1: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz
> mmc1: Card appears overclocked; req 104000000 Hz, actual 192000000 Hz
>
> Fixes: 6d37a8d19283 ("clk: qcom: gcc-sc7180: Use floor ops for sdcc clks")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
Applied to clk-fixes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk
2021-02-24 17:50 [PATCH] clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk Douglas Anderson
2021-03-01 17:00 ` Taniya Das
2021-03-13 21:00 ` Stephen Boyd
@ 2021-05-26 19:03 ` patchwork-bot+linux-arm-msm
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2021-05-26 19:03 UTC (permalink / raw)
To: Doug Anderson; +Cc: linux-arm-msm
Hello:
This patch was applied to qcom/linux.git (refs/heads/for-next):
On Wed, 24 Feb 2021 09:50:25 -0800 you wrote:
> While picking commit a8cd989e1a57 ("mmc: sdhci-msm: Warn about
> overclocking SD/MMC") back to my tree I was surprised that it was
> reporting warnings. I thought I fixed those! Looking closer at the
> fix, I see that I totally bungled it (or at least I halfway bungled
> it). The SD card clock got fixed (and that was the one I was really
> focused on fixing), but I totally adjusted the wrong clock for eMMC.
> Sigh. Let's fix my dumb mistake.
>
> [...]
Here is the summary with links:
- clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk
https://git.kernel.org/qcom/c/148ddaa89d4a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-26 19:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 17:50 [PATCH] clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk Douglas Anderson
2021-03-01 17:00 ` Taniya Das
2021-03-13 21:00 ` Stephen Boyd
2021-05-26 19:03 ` patchwork-bot+linux-arm-msm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).