mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
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 <peter.griffin@linaro.org> Link: https://lore.kernel.org/r/20241031150033.3440894-7-peter.griffin@linaro.org Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
5278917250
commit
96f3fd267f
|
|
@ -541,6 +541,9 @@ static void exynos_ufs_specify_phy_time_attr(struct exynos_ufs *ufs)
|
|||
struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr;
|
||||
struct ufs_phy_time_cfg *t_cfg = &ufs->t_cfg;
|
||||
|
||||
if (ufs->opts & EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR)
|
||||
return;
|
||||
|
||||
t_cfg->tx_linereset_p =
|
||||
exynos_ufs_calc_time_cntr(ufs, attr->tx_dif_p_nsec);
|
||||
t_cfg->tx_linereset_n =
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user