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

Commit d9ae5404 authored by Sayali Lokhande's avatar Sayali Lokhande Committed by Gerrit - the friendly Code Review server
Browse files

drivers: phy: ufs: Use correct UFS PHY version suffix for sm6150



For sm6150 target, UFS PHY version suffix is updated to 0x2.
This change updates the check condition to callibrate UFS Phy
based on correct version suffix.

Change-Id: Icdadd4a43cd2adaba2a36005d5539c28a1241a31
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent acdc902f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -30,7 +30,7 @@ int ufs_qcom_phy_qmp_v3_660_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy,
	tbl_size_B = ARRAY_SIZE(phy_cal_table_rate_B);
	tbl_B = phy_cal_table_rate_B;

	if ((major == 0x3) && (minor == 0x001) && (step == 0x001)) {
	if ((major == 0x3) && (minor == 0x001) && (step >= 0x001)) {
		tbl_A = phy_cal_table_rate_A_3_1_1;
		tbl_size_A = ARRAY_SIZE(phy_cal_table_rate_A_3_1_1);
	} else {