mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ladvine D Almeida <Ladvine.DAlmeida@synopsys.com>
To: "Vinayak Holikatti <vinholikatti@gmail.com>; \"James E.J.
	Bottomley\" <jejb@linux.vnet.ibm.com>; \"Martin K. Petersen\""
	<martin.petersen@oracle.com>, <linux-kernel@vger.kernel.org>,
	"linux-scsi@vger.kernel.org; Manjunath M Bettegowda
	<manjumb@synopsys.com>; Prabu Thangamuthu <prabut@synopsys.com>;
	Tejas Joglekar <joglekar@synopsys.com>; Joao Pinto"
	<Joao.Pinto@synopsys.com>
Subject: [PATCH 3/5] scsi: ufs: Add Kconfig for UFS HC driver crypto support
Date: Mon, 28 May 2018 14:29:07 +0100	[thread overview]
Message-ID: <9baaf314-e9de-a078-1085-9c81b3421d42@synopsys.com> (raw)


This patch adds the Kconfig for enabling crypto support for
UFS Host Controller driver. It also adds Makefile changes
for building crypto support based on crypto Kconfig selection.

Signed-off-by: Ladvine D Almeida <ladvine@synopsys.com>
---
 drivers/scsi/ufs/Kconfig  | 15 +++++++++++++++
 drivers/scsi/ufs/Makefile |  6 +++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig
index e27b4d4..0134672 100644
--- a/drivers/scsi/ufs/Kconfig
+++ b/drivers/scsi/ufs/Kconfig
@@ -50,6 +50,21 @@ config SCSI_UFSHCD
 	  However, do not compile this as a module if your root file system
 	  (the one containing the directory /) is located on a UFS device.
 
+config SCSI_UFSHCD_INLINE_ENCRYPTION
+	bool "Universal Flash Storage Controller Driver crypto support"
+	depends on SCSI_UFSHCD
+	default n
+	select BLK_DEV_INLINE_ENCRYPTION if SCSI_UFSHCD_INLINE_ENCRYPTION
+	help
+	This enables the Inline Encryption feature of the UFS Host
+	Controller driver. Once the capability is detected in hardware,
+	it will be made available for the user through Linux Kernel
+	Cryptography Framework(LKCF).
+
+	  If you have a controller with this capability, say Y.
+
+	  If unsure, say N.
+
 config SCSI_UFSHCD_PCI
 	tristate "PCI bus based UFS Controller support"
 	depends on SCSI_UFSHCD && PCI
diff --git a/drivers/scsi/ufs/Makefile b/drivers/scsi/ufs/Makefile
index 918f579..ab84bec 100644
--- a/drivers/scsi/ufs/Makefile
+++ b/drivers/scsi/ufs/Makefile
@@ -4,6 +4,10 @@ obj-$(CONFIG_SCSI_UFS_DWC_TC_PCI) += tc-dwc-g210-pci.o ufshcd-dwc.o tc-dwc-g210.
 obj-$(CONFIG_SCSI_UFS_DWC_TC_PLATFORM) += tc-dwc-g210-pltfrm.o ufshcd-dwc.o tc-dwc-g210.o
 obj-$(CONFIG_SCSI_UFS_QCOM) += ufs-qcom.o
 obj-$(CONFIG_SCSI_UFSHCD) += ufshcd-core.o
-ufshcd-core-objs := ufshcd.o ufs-sysfs.o
+ifdef CONFIG_SCSI_UFSHCD_INLINE_ENCRYPTION
+        ufshcd-core-objs := ufshcd.o ufs-sysfs.o ufshcd-crypto.o
+else
+        ufshcd-core-objs := ufshcd.o ufs-sysfs.o
+endif
 obj-$(CONFIG_SCSI_UFSHCD_PCI) += ufshcd-pci.o
 obj-$(CONFIG_SCSI_UFSHCD_PLATFORM) += ufshcd-pltfrm.o
-- 
2.7.4

             reply	other threads:[~2018-05-28 13:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-28 13:29 Ladvine D Almeida [this message]
2018-05-28 15:48 ` Randy Dunlap
2018-05-29  6:28   ` Ladvine D Almeida

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9baaf314-e9de-a078-1085-9c81b3421d42@synopsys.com \
    --to=ladvine.dalmeida@synopsys.com \
    --cc=Joao.Pinto@synopsys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®