On 2016-11-01 11:42, Subhash Jadavani wrote:
On 2016-10-29 13:22, Vivek Gautam wrote:
The tx_iface_clk and rx_iface_clk no longer exist with UFS Phy
present on msm8996. So skip obtaining these clocks using
compatible match.

Signed-off-by: Vivek Gautam <[email protected]>
---

New patch in v3 of this cleanup series.
Comes in place of the following patch in v2 -
 phy: qcom-ufs: remove failure when rx/tx_iface_clk are absent

 drivers/phy/phy-qcom-ufs.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/phy/phy-qcom-ufs.c b/drivers/phy/phy-qcom-ufs.c
index a173b30..11c8cae 100644
--- a/drivers/phy/phy-qcom-ufs.c
+++ b/drivers/phy/phy-qcom-ufs.c
@@ -184,6 +184,10 @@ int ufs_qcom_phy_clk_get(struct device *dev,
 {
        int err;

+       if (of_device_is_compatible(phy_common->dev->of_node,
+                               "qcom,msm8996-ufs-phy-qmp-14nm"))

Vivek, This change looks good but you might need a minor change if we
agree to change the compatible string name
("qcom,msm8996-ufs-phy-qmp-14nm") as commented on patch #4.

As I am ok with patch #4 after Vivek's clarifications, I am ok with this patch as well.
Reviewed-by: Subhash Jadavani <[email protected]>


+               goto skip_txrx_clk;
+
        err = ufs_qcom_phy_clk_get(phy_common->dev, "tx_iface_clk",
                                   &phy_common->tx_iface_clk);
        if (err)
@@ -199,6 +203,7 @@ int ufs_qcom_phy_clk_get(struct device *dev,
        if (err)
                goto out;

+skip_txrx_clk:
        /*
         * "ref_clk_parent" is optional hence don't abort init if it's not
         * found.

--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to