aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/Makefile
diff options
context:
space:
mode:
authorSatya Tangirala <satyat@google.com>2020-07-06 20:04:13 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2020-07-08 01:23:29 -0400
commit70297a8ac7a7a4a3284c2eb20fefefbe72dab338 (patch)
treedbfb9029c89a6ecea3d25fa59ebd4e955df018a5 /drivers/scsi/ufs/Makefile
parentscsi: ufs: UFS driver v2.1 spec crypto additions (diff)
downloadlinux-dev-70297a8ac7a7a4a3284c2eb20fefefbe72dab338.tar.xz
linux-dev-70297a8ac7a7a4a3284c2eb20fefefbe72dab338.zip
scsi: ufs: UFS crypto API
Introduce functions to manipulate UFS inline encryption hardware in line with the JEDEC UFSHCI v2.1 specification and to work with the block keyslot manager. The UFS crypto API will assume by default that a vendor driver doesn't support UFS crypto, even if the hardware advertises the capability, because a lot of hardware requires some special handling that's not specified in the aforementioned JEDEC spec. Each vendor driver must explicitly set hba->caps |= UFSHCD_CAP_CRYPTO before ufshcd_hba_init_crypto_capabilities() is called to opt-in to UFS crypto support. Link: https://lore.kernel.org/r/20200706200414.2027450-3-satyat@google.com Reviewed-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Stanley Chu <stanley.chu@mediatek.com> Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by: Satya Tangirala <satyat@google.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/Makefile')
-rw-r--r--drivers/scsi/ufs/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/Makefile b/drivers/scsi/ufs/Makefile
index f0c5b95ec9cc..9810963bc049 100644
--- a/drivers/scsi/ufs/Makefile
+++ b/drivers/scsi/ufs/Makefile
@@ -8,6 +8,7 @@ obj-$(CONFIG_SCSI_UFS_EXYNOS) += ufs-exynos.o
obj-$(CONFIG_SCSI_UFSHCD) += ufshcd-core.o
ufshcd-core-y += ufshcd.o ufs-sysfs.o
ufshcd-core-$(CONFIG_SCSI_UFS_BSG) += ufs_bsg.o
+ufshcd-core-$(CONFIG_SCSI_UFS_CRYPTO) += ufshcd-crypto.o
obj-$(CONFIG_SCSI_UFSHCD_PCI) += ufshcd-pci.o
obj-$(CONFIG_SCSI_UFSHCD_PLATFORM) += ufshcd-pltfrm.o
obj-$(CONFIG_SCSI_UFS_HISI) += ufs-hisi.o