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>
Cc: <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 4/5] scsi: ufs: Add crypto masks for UFS HC driver
Date: Mon, 28 May 2018 14:32:21 +0100	[thread overview]
Message-ID: <ff79e81f-2250-35e8-9c10-ae4e0b2e08ba@synopsys.com> (raw)


This patch add necessary crypto mask and command for
inline encryption support in the UFS Host Controller driver.

Signed-off-by: Ladvine D Almeida <ladvine@synopsys.com>
---
 drivers/scsi/ufs/ufshci.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h
index bb5d9c7..c003924 100644
--- a/drivers/scsi/ufs/ufshci.h
+++ b/drivers/scsi/ufs/ufshci.h
@@ -90,6 +90,7 @@ enum {
 	MASK_64_ADDRESSING_SUPPORT		= 0x01000000,
 	MASK_OUT_OF_ORDER_DATA_DELIVERY_SUPPORT	= 0x02000000,
 	MASK_UIC_DME_TEST_MODE_SUPPORT		= 0x04000000,
+	MASK_CRYPTO_SUPPORT                     = 0x10000000,
 };
 
 #define UFS_MASK(mask, offset)		((mask) << (offset))
@@ -337,6 +338,7 @@ enum {
 	UTP_NATIVE_UFS_COMMAND		= 0x10000000,
 	UTP_DEVICE_MANAGEMENT_FUNCTION	= 0x20000000,
 	UTP_REQ_DESC_INT_CMD		= 0x01000000,
+	UTP_REQ_CRYPT_EN_CMD            = 0x00800000, /* Inline Encryption */
 };
 
 /* UTP Transfer Request Data Direction (DD) */
-- 
2.7.4

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

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=ff79e81f-2250-35e8-9c10-ae4e0b2e08ba@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®