Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9542a206 authored by Can Guo's avatar Can Guo
Browse files

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: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
[cang@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent ce32edf8
Loading
Loading
Loading
Loading
+5 −10
Original line number Diff line number Diff line
@@ -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",