mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
phy: qcom-ufs: remove warnings for optional clocks
tx_iface_clk and rx_iface_clk does not exist in newer version of ufs-phy HW, hence remove the missing clk warnings for them. Change-Id: Ic8dd3e9521159ce8da064da38cfa12e75f07209f Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org> [cang@codeaurora.org: resolved trivial merge conflicts] Signed-off-by: Can Guo <cang@codeaurora.org>
This commit is contained in:
parent
ce32edf88c
commit
9542a206ae
1 changed files with 5 additions and 10 deletions
|
|
@ -181,20 +181,15 @@ int ufs_qcom_phy_init_clks(struct ufs_qcom_phy *phy_common)
|
|||
* tx_iface_clk does not exist in newer version of ufs-phy HW,
|
||||
* so don't return error if it is not found
|
||||
*/
|
||||
err = ufs_qcom_phy_clk_get(phy_common->dev, "tx_iface_clk",
|
||||
&phy_common->tx_iface_clk);
|
||||
if (err)
|
||||
dev_dbg(phy_common->dev, "%s: failed to get tx_iface_clk\n",
|
||||
__func__);
|
||||
__ufs_qcom_phy_clk_get(phy_common->dev, "tx_iface_clk",
|
||||
&phy_common->tx_iface_clk, false);
|
||||
|
||||
/*
|
||||
* rx_iface_clk does not exist in newer version of ufs-phy HW,
|
||||
* so don't return error if it is not found
|
||||
*/
|
||||
err = ufs_qcom_phy_clk_get(phy_common->dev, "rx_iface_clk",
|
||||
&phy_common->rx_iface_clk);
|
||||
if (err)
|
||||
dev_dbg(phy_common->dev, "%s: failed to get rx_iface_clk\n",
|
||||
__func__);
|
||||
__ufs_qcom_phy_clk_get(phy_common->dev, "rx_iface_clk",
|
||||
&phy_common->rx_iface_clk, false);
|
||||
|
||||
skip_txrx_clk:
|
||||
err = ufs_qcom_phy_clk_get(phy_common->dev, "ref_clk_src",
|
||||
|
|
|
|||
Loading…
Reference in a new issue