diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 4324f42024e7..6390f2869866 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -2768,12 +2768,10 @@ static int ufs_qcom_init(struct ufs_hba *hba) } /* update phy revision information before calling phy_init() */ - /* - * FIXME: - * ufs_qcom_phy_save_controller_version(host->generic_phy, - * host->hw_ver.major, host->hw_ver.minor, host->hw_ver.step); - */ - err = ufs_qcom_parse_reg_info(host, "qcom,vddp-ref-clk", + ufs_qcom_phy_save_controller_version(host->generic_phy, + host->hw_ver.major, host->hw_ver.minor, host->hw_ver.step); + + err = ufs_qcom_parse_reg_info(host, "qcom,vddp-ref-clk", &host->vddp_ref_clk); err = phy_init(host->generic_phy); diff --git a/include/linux/phy/phy-qcom-ufs.h b/include/linux/phy/phy-qcom-ufs.h index 11c6c893a650..101737f29af5 100644 --- a/include/linux/phy/phy-qcom-ufs.h +++ b/include/linux/phy/phy-qcom-ufs.h @@ -11,6 +11,8 @@ void ufs_qcom_phy_ctrl_rx_linecfg(struct phy *generic_phy, bool ctrl); void ufs_qcom_phy_set_tx_lane_enable(struct phy *generic_phy, u32 tx_lanes); void ufs_qcom_phy_dbg_register_dump(struct phy *generic_phy); +void ufs_qcom_phy_save_controller_version(struct phy *generic_phy, + u8 major, u16 minor, u16 step); #endif /* PHY_QCOM_UFS_H_ */