Skip to content

Commit f8fe71a

Browse files
petegriffinmartinkpetersen
authored andcommitted
scsi: ufs: exynos: remove tx_dif_p_nsec from exynosauto_ufs_drv_init()
Remove the assignment of tx_dif_p_nsec as both users of exynosauto_ufs_drv_init() function (exynosauto and gs101) set the EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR flag meaning that tx_dif_p_nsec has no effect. Additionally both users also set the samsung,sysreg dt property, meaning the execution flow will always return on the regmap_update_bits() call before the assignment. 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 5ef3cb6 commit f8fe71a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/ufs/host/ufs-exynos.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,13 @@ static inline void exynos_ufs_ungate_clks(struct exynos_ufs *ufs)
200200

201201
static int exynosauto_ufs_drv_init(struct exynos_ufs *ufs)
202202
{
203-
struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr;
204-
205203
/* IO Coherency setting */
206204
if (ufs->sysreg) {
207205
return regmap_update_bits(ufs->sysreg,
208206
ufs->shareability_reg_offset,
209207
UFS_SHARABLE, UFS_SHARABLE);
210208
}
211209

212-
attr->tx_dif_p_nsec = 3200000;
213-
214210
return 0;
215211
}
216212

0 commit comments

Comments
 (0)