Patch "arm64: dts: qcom: sc8280xp: correct ref clock for ufs_mem_phy" has been added to the 6.0-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

    arm64: dts: qcom: sc8280xp: correct ref clock for ufs_mem_phy

to the 6.0-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:
     arm64-dts-qcom-sc8280xp-correct-ref-clock-for-ufs_me.patch
and it can be found in the queue-6.0 subdirectory.

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



commit 4920acd959ffe1d44eb28878df4c65de50894ebb
Author: Brian Masney <bmasney@xxxxxxxxxx>
Date:   Thu Oct 6 10:55:29 2022 -0400

    arm64: dts: qcom: sc8280xp: correct ref clock for ufs_mem_phy
    
    [ Upstream commit f3aa975e230e060c07dcfdf3fe92b59809422c13 ]
    
    The first UFS host controller fails to start on the SA8540P automotive
    board (QDrive3) due to the following errors:
    
        ufshcd-qcom 1d84000.ufs: ufshcd_query_flag: Sending flag query for idn 18 failed, err = 253
        ufshcd-qcom 1d84000.ufs: ufshcd_query_flag: Sending flag query for idn 18 failed, err = 253
        ufshcd-qcom 1d84000.ufs: ufshcd_query_flag: Sending flag query for idn 18 failed, err = 253
        ufshcd-qcom 1d84000.ufs: ufshcd_query_flag_retry: query attribute, opcode 5, idn 18, failed
            with error 253 after 3 retries
    
    The system eventually fails to boot with the warning:
    
        gcc_ufs_phy_axi_clk status stuck at 'off'
    
    This issue can be worked around by adding clk_ignore_unused to the
    kernel command line since the system firmware sets up this clock for us.
    
    Let's fix this issue by updating the ref clock on ufs_mem_phy. Note
    that the downstream MSM 5.4 sources list this as ref_clk_parent. With
    this patch, the SA8540P is able to be booted without clk_ignore_unused.
    
    Signed-off-by: Brian Masney <bmasney@xxxxxxxxxx>
    Fixes: 152d1faf1e2f ("arm64: dts: qcom: add SC8280XP platform")
    Tested-by: Johan Hovold <johan+linaro@xxxxxxxxxx>
    Reviewed-by: Johan Hovold <johan+linaro@xxxxxxxxxx>
    Signed-off-by: Bjorn Andersson <andersson@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221006145529.755521-1-bmasney@xxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
index 92cbe84de0e5..cdc395d53c5a 100644
--- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
@@ -891,7 +891,7 @@ ufs_mem_phy: phy@1d87000 {
 			ranges;
 			clock-names = "ref",
 				      "ref_aux";
-			clocks = <&rpmhcc RPMH_CXO_CLK>,
+			clocks = <&gcc GCC_UFS_REF_CLKREF_CLK>,
 				 <&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
 
 			resets = <&ufs_mem_hc 0>;



[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