Skip to content

Commit 96f3fd2

Browse files
petegriffinmartinkpetersen
authored andcommitted
scsi: ufs: exynos: Add EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR check
The values calculated in exynos_ufs_specify_phy_time_attr() are only used in exynos_ufs_config_phy_time_attr() which is only called if the EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR flag is not set. Add a check for this flag to exynos_ufs_specify_phy_time_attr() and return for platforms that don't set it. Signed-off-by: Peter Griffin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Tudor Ambarus <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 5278917 commit 96f3fd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/ufs/host/ufs-exynos.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,9 @@ static void exynos_ufs_specify_phy_time_attr(struct exynos_ufs *ufs)
541541
struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr;
542542
struct ufs_phy_time_cfg *t_cfg = &ufs->t_cfg;
543543

544+
if (ufs->opts & EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR)
545+
return;
546+
544547
t_cfg->tx_linereset_p =
545548
exynos_ufs_calc_time_cntr(ufs, attr->tx_dif_p_nsec);
546549
t_cfg->tx_linereset_n =

0 commit comments

Comments
 (0)