diff options
author | Vivek Gautam <vivek.gautam@codeaurora.org> | 2016-11-08 05:07:44 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-11-08 18:05:45 -0500 |
commit | 300f96771d78e125c42592792e18b4c0cf58d386 (patch) | |
tree | 1207dd1c8363b332521bd177b9f593c875b2927c | |
parent | e41973769bb5d458c9449694b98382ba5d530cde (diff) |
phy: qcom-ufs: Skip obtaining rx/tx_iface_clk for msm8996 based phy
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 <vivek.gautam@codeaurora.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/phy/phy-qcom-ufs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/phy/phy-qcom-ufs.c b/drivers/phy/phy-qcom-ufs.c index b0171fef3868..3fa7b07aaeca 100644 --- a/drivers/phy/phy-qcom-ufs.c +++ b/drivers/phy/phy-qcom-ufs.c | |||
@@ -182,6 +182,10 @@ int ufs_qcom_phy_init_clks(struct ufs_qcom_phy *phy_common) | |||
182 | { | 182 | { |
183 | int err; | 183 | int err; |
184 | 184 | ||
185 | if (of_device_is_compatible(phy_common->dev->of_node, | ||
186 | "qcom,msm8996-ufs-phy-qmp-14nm")) | ||
187 | goto skip_txrx_clk; | ||
188 | |||
185 | err = ufs_qcom_phy_clk_get(phy_common->dev, "tx_iface_clk", | 189 | err = ufs_qcom_phy_clk_get(phy_common->dev, "tx_iface_clk", |
186 | &phy_common->tx_iface_clk); | 190 | &phy_common->tx_iface_clk); |
187 | if (err) | 191 | if (err) |
@@ -197,6 +201,7 @@ int ufs_qcom_phy_init_clks(struct ufs_qcom_phy *phy_common) | |||
197 | if (err) | 201 | if (err) |
198 | goto out; | 202 | goto out; |
199 | 203 | ||
204 | skip_txrx_clk: | ||
200 | /* | 205 | /* |
201 | * "ref_clk_parent" is optional hence don't abort init if it's not | 206 | * "ref_clk_parent" is optional hence don't abort init if it's not |
202 | * found. | 207 | * found. |