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:
Can Guo 2019-08-20 00:55:21 -07:00
commit 9542a206ae

View file

@ -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",