Skip to content

Commit 449adb0

Browse files
petegriffinmartinkpetersen
authored andcommitted
scsi: ufs: exynos: Add EXYNOS_UFS_OPT_UFSPR_SECURE option
This option is intended to be set on platforms whose ufspr registers are only accessible via smc call (such as gs101). Signed-off-by: Peter Griffin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Krzysztof Kozlowski <[email protected]> Tested-by: Will McVicker <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 438e23b commit 449adb0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/ufs/host/ufs-exynos.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,10 @@ static int exynos_ufs_init(struct ufs_hba *hba)
11861186
if (ret)
11871187
goto out;
11881188
exynos_ufs_specify_phy_time_attr(ufs);
1189-
exynos_ufs_config_smu(ufs);
1189+
if (!(ufs->opts & EXYNOS_UFS_OPT_UFSPR_SECURE))
1190+
exynos_ufs_config_smu(ufs);
1191+
1192+
hba->host->dma_alignment = SZ_4K - 1;
11901193
return 0;
11911194

11921195
out:

drivers/ufs/host/ufs-exynos.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ struct exynos_ufs {
221221
#define EXYNOS_UFS_OPT_BROKEN_RX_SEL_IDX BIT(3)
222222
#define EXYNOS_UFS_OPT_USE_SW_HIBERN8_TIMER BIT(4)
223223
#define EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR BIT(5)
224+
#define EXYNOS_UFS_OPT_UFSPR_SECURE BIT(6)
224225
};
225226

226227
#define for_each_ufs_rx_lane(ufs, i) \

0 commit comments

Comments
 (0)