summaryrefslogtreecommitdiff
path: root/drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c
diff options
context:
space:
mode:
authorEvan Green <evgreen@chromium.org>2019-03-21 10:17:59 -0700
committerKishon Vijay Abraham I <kishon@ti.com>2019-04-17 14:12:56 +0530
commitc9b589791fc1b37fdca35b621dae62e98e4c95fc (patch)
tree6049f17f5e3586f311376670fd2ff5287e9a0828 /drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c
parent12fd5f250db2ad6b292d3a28bc3c0011fe30511f (diff)
downloadlinux-c9b589791fc1b37fdca35b621dae62e98e4c95fc.tar.gz
phy: qcom: Utilize UFS reset controller
Move the PHY reset from ufs-qcom into the respective PHYs. This will allow us to merge the two phases of UFS PHY initialization. Signed-off-by: Evan Green <evgreen@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c')
-rw-r--r--drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c b/drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c
index 1e0d4f2046a4..cc343517a2ca 100644
--- a/drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c
+++ b/drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c
@@ -48,6 +48,14 @@ static int ufs_qcom_phy_qmp_14nm_init(struct phy *generic_phy)
bool is_rate_B = false;
int ret;
+ ret = ufs_qcom_phy_get_reset(phy_common);
+ if (ret)
+ return ret;
+
+ ret = reset_control_assert(phy_common->ufs_reset);
+ if (ret)
+ return ret;
+
if (phy_common->mode == PHY_MODE_UFS_HS_B)
is_rate_B = true;