Patch "clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     clk-qcom-gcc-sc7180-use-floor-ops-for-the-correct-sd.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 3190b5ab5ee58a371ef8991e22ccd58dfec473b1
Author: Douglas Anderson <dianders@xxxxxxxxxxxx>
Date:   Wed Feb 24 09:50:25 2021 -0800

    clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk
    
    [ Upstream commit 148ddaa89d4a0a927c4353398096cc33687755c1 ]
    
    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@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210224095013.1.I2e2ba4978cfca06520dfb5d757768f9c42140f7c@changeid
    Reviewed-by: Taniya Das <tdas@xxxxxxxxxxxxxx>
    Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c
index b080739ab0c3..7e80dbd4a3f9 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,
 	},
 };
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux