Skip to content

Commit 3091181

Browse files
Nitin Rawatmartinkpetersen
authored andcommitted
scsi: ufs: qcom: Align programing of unipro clk attributes
Currently CORE_CLK_1US_CYCLES, PA_VS_CORE_CLK_40NS_CYCLES are configured in clk scaling post change ops. This is not aligning to HPG. Move this to clk scaling pre change ops to align completely with hardware specification. Co-developed-by: Naveen Kumar Goud Arepalli <[email protected]> Signed-off-by: Naveen Kumar Goud Arepalli <[email protected]> Signed-off-by: Nitin Rawat <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Can Guo <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a53dfc0 commit 3091181

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drivers/ufs/host/ufs-qcom.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,12 +1416,6 @@ static int ufs_qcom_set_core_clk_ctrl(struct ufs_hba *hba, bool is_scale_up)
14161416
}
14171417

14181418
static int ufs_qcom_clk_scale_up_pre_change(struct ufs_hba *hba)
1419-
{
1420-
/* nothing to do as of now */
1421-
return 0;
1422-
}
1423-
1424-
static int ufs_qcom_clk_scale_up_post_change(struct ufs_hba *hba)
14251419
{
14261420
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
14271421

@@ -1432,6 +1426,11 @@ static int ufs_qcom_clk_scale_up_post_change(struct ufs_hba *hba)
14321426
return ufs_qcom_set_core_clk_ctrl(hba, true);
14331427
}
14341428

1429+
static int ufs_qcom_clk_scale_up_post_change(struct ufs_hba *hba)
1430+
{
1431+
return 0;
1432+
}
1433+
14351434
static int ufs_qcom_clk_scale_down_pre_change(struct ufs_hba *hba)
14361435
{
14371436
struct ufs_qcom_host *host = ufshcd_get_variant(hba);

0 commit comments

Comments
 (0)