diff options
author | Eric Biggers <ebiggers@google.com> | 2022-12-08 15:43:58 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-12-30 21:17:33 +0000 |
commit | ada1e653a5eae7361d95781ed812caa0c8e07dbb (patch) | |
tree | 1bfb82ff3341bfad501c1e191a9cfd31d56d8403 /drivers/ufs/host | |
parent | b434ecfb73ee84fbc5996d0784a4436e75b8d0fe (diff) | |
download | linux-ada1e653a5eae7361d95781ed812caa0c8e07dbb.tar.gz linux-ada1e653a5eae7361d95781ed812caa0c8e07dbb.tar.bz2 linux-ada1e653a5eae7361d95781ed812caa0c8e07dbb.zip |
scsi: ufs: core: Allow UFS host drivers to override the sg entry size
Modify the UFSHCD core to allow 'struct ufshcd_sg_entry' to be
variable-length. The default is the standard length, but variants can
override ufs_hba::sg_entry_size with a larger value if there are
vendor-specific fields following the standard ones.
This is needed to support inline encryption with ufs-exynos (FMP).
Cc: Eric Biggers <ebiggers@google.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
[ bvanassche: edited commit message and introduced CONFIG_SCSI_UFS_VARIABLE_SG_ENTRY_SIZE ]
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs/host')
-rw-r--r-- | drivers/ufs/host/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ufs/host/Kconfig b/drivers/ufs/host/Kconfig index 4cc2dbd79ed0..7f01f453e792 100644 --- a/drivers/ufs/host/Kconfig +++ b/drivers/ufs/host/Kconfig @@ -124,3 +124,7 @@ config SCSI_UFS_EXYNOS Select this if you have UFS host controller on Samsung Exynos SoC. If unsure, say N. + +config SCSI_UFS_VARIABLE_SG_ENTRY_SIZE + bool + default y if SCSI_UFS_EXYNOS && SCSI_UFS_CRYPTO |