Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2477670imm; Mon, 28 May 2018 08:50:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpNaqQeCrnDMMWruCk3h7yvN1KCS2/JTJIT+E3N+yhhSozCUyZdhbBSAUz82IoHIJPiA6n5 X-Received: by 2002:a62:91b:: with SMTP id e27-v6mr14017071pfd.93.1527522644231; Mon, 28 May 2018 08:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527522644; cv=none; d=google.com; s=arc-20160816; b=CdgKNGeA6rCeuL25DszXXoTf4U35PhGt3BIDFPsQov6GBL9UkY1IYELS3+b+3jT/Wt Xn/c3R2O65Dy+9N65EITSIvQvk2y9vBx1xTTHDDR29CcSWjYbPiuuMkvpFP6dlr72Wl2 XOx9lYPJnD67TjU8CE4VFnByleb0OMNT1wD4QUXaS6UmErhRBN2NEDT5Uhe+FlBll77u YuTS2pWLVFEesfy2wLMOuRD07htUoXy4LIq/m4TfKVhU7pcLhM1RtyHOZUXolU5leDgf IXDyr/A2NAa9PwE5XjZ1o+rbarj+dBupXRYM4VdSvQO1gcLtD0Cudssz+/B36vmBtZGj jGeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature :arc-authentication-results; bh=EkbENqgIgnzQCg35y/1WagXLY7vKYIei9lMGpM67NLM=; b=S9xKSWTQoKYqXon1N+loBzXyy06r7bXNtwnmaT00Lzf9YO1/MvtHE3loi3LW57+MKp zpetfvq7qdvWV23Nh7TPKk9CgQ1OpllJ75f++SLRXnQa16ZLiaS7S0fgYYUcarhJgIho bMdaL/FrW/y9/Ott72+jv5NnVF6TXYv9I1M1j2nA6770/MWfU/zE9IROvrrIOFI2GFmi HLfn9AwVRjb2CzSF9l4ue3kFQ2WIIZytQTHIAV9SnEiatNxGTOI21v6CVUoQWysyE0Y4 qnTKPip3aB0DhmGlP+dS4R+66ITXxKngJSWiQ+A0NbcTf/jfzNPZt4ALnK+cptzkc9uJ olvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=MS00zl5c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t127-v6si23352023pgc.519.2018.05.28.08.50.29; Mon, 28 May 2018 08:50:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=MS00zl5c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034929AbeE1PtC (ORCPT + 99 others); Mon, 28 May 2018 11:49:02 -0400 Received: from merlin.infradead.org ([205.233.59.134]:49298 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034841AbeE1Ps6 (ORCPT ); Mon, 28 May 2018 11:48:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EkbENqgIgnzQCg35y/1WagXLY7vKYIei9lMGpM67NLM=; b=MS00zl5c6uzD7FK/wuI9MLcKIl UIvSJ2bWdlHSwHGv382Yqd2eqdwt00EKyMmF3FZRACjSrfsO41WPtYWnqCm/kaQHdQLUsbggq2GXE LrXHq5768Rcd6NxpO/R03QTszTeSvVvWmdf63EsaM2Aq/s4Lv8UF2IuVaUgkZXSwbkssQCWmUguX1 Gm8EtF6NmdPl4n8/tGlfTI1vr2TV6MbRidjOk4Ldy3LLJu8S1QYmMTVTEQo0BzY1sKDLOqjcHpGgY f6aVqYCnVJ+EYpGJNUbPrDQTtAjz0LKDO3Y0HcAqrkb7t2LFIHiv6ZLEVzB+hMcK3we/+Xl2Y/D/g dnqlgDWw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fNKOD-0003W6-QJ; Mon, 28 May 2018 15:48:54 +0000 Subject: Re: [PATCH 3/5] scsi: ufs: Add Kconfig for UFS HC driver crypto support To: Ladvine D Almeida , Vinayak Holikatti ";" "\"James" "E.J." "Bottomley\"" ";" "\"Martin" "K." "Petersen\"" , linux-kernel@vger.kernel.org, "linux-scsi@vger.kernel.org;" Manjunath M Bettegowda ";" Prabu Thangamuthu ";" Tejas Joglekar ";" Joao Pinto References: <9baaf314-e9de-a078-1085-9c81b3421d42@synopsys.com> From: Randy Dunlap Message-ID: <394042f2-2231-37c9-f875-979415dbdf58@infradead.org> Date: Mon, 28 May 2018 08:48:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <9baaf314-e9de-a078-1085-9c81b3421d42@synopsys.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/28/2018 06:29 AM, Ladvine D Almeida wrote: > > 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 > --- > 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). The help text above should be indented (as below), with one tab + 2 spaces. > + > + 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 -- ~Randy