Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1818144ybh; Sun, 15 Mar 2020 11:49:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtrKix/xeGHcznfxhkcFEbHaXgxUqZg2k5e/nvK9UxAtJ3/Q+HB5WEUnuXIj4F7Os6tHkjw X-Received: by 2002:a9d:649a:: with SMTP id g26mr20232992otl.266.1584298155563; Sun, 15 Mar 2020 11:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584298155; cv=none; d=google.com; s=arc-20160816; b=ofEDvw4Hz9QdPZNp2KLrWWlzSZtxWKmhmaR+PiZ2o5s+XRgN0xDeF44jDCg70+soND 3dkWgjlD4aMHT4/zfZi5pNlVZijOtKh+UhVXgKcIHHmWBObGiuxjegsE/T9UMEcRttLB 4wSFISf9sFAD49e7bug4zXbi4X0XudAq9AKRq686flI11tjRlVB3FqqHT0IrKSOrlBWS I7SMi9yvYqNiBLFWW8pyZHcKcSkWn2ILZtiodleB0Wd/4MtuZXRFgg0r9j5iX9iSL5Ch 0wZPSl75jKhf3EQPqwJpRpesODr03v56AndrprRf2B70u105jTl2v7Fv4odCbNdFTP75 bfDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1nljtUoh8hL/QFLNUWRSAvGfOVx2KaPLIqh+EopQFhE=; b=RQ0N8LoGXyQhaIj4o+sF4aBOfRNdyxiq/S8gxbYpLXYV74r+PiEJPl4BjIp/Jp6pAG NiUkO7L/W3e1hxRCjEx9oMfjsjH/sLnlPdIyfzfsSak01939ddMFSpEnMzJ+YCa35vWx /ze/Sfo7rTy8g7jvV/b3cnaPOTWjCfUxI2d4XYYi9CKPJQ0C8VVF/OvnqLq/mnr6AIfA VGYnpeANaf9wPczWb/560jZkRdD1A8WgbYrQENnj1UdbS9ecONpOWXd5ldhFBLhsDhDA TsH2UN3E4/kSqGkAAxVwpqQQehtIKA1xKZkXqi9/Zqi9IFTGnzvUnEZEZil5yYzr/GPJ QayQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rv4px8s9; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si8833717otk.207.2020.03.15.11.49.02; Sun, 15 Mar 2020 11:49:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rv4px8s9; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728837AbgCOSsp (ORCPT + 99 others); Sun, 15 Mar 2020 14:48:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:58738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726444AbgCOSsp (ORCPT ); Sun, 15 Mar 2020 14:48:45 -0400 Received: from sol.localdomain (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C90C520575; Sun, 15 Mar 2020 18:48:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584298125; bh=X7eZm/83zSemhOKu22Fty0SqoIeYPuDleqyyTdJy9RU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rv4px8s9Q3eGMV1pW/kfV45LvoiySpkl8HU+8x1zdkXRGMsh0dkAMrapkwL+AjZa0 SCV1NVVv7N51uf4WdCkuYsvSDBby9mvNHp7QTngAMszE0Dksw0qMrF7BRxtmxbSruO DuDVYR6iZ/JAfXTPo4wxtR52H+NmnEVYOaxhDvl4= Date: Sun, 15 Mar 2020 11:48:43 -0700 From: Eric Biggers To: Satya Tangirala Cc: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-ext4@vger.kernel.org, Barani Muthukumaran , Kuohong Wang , Kim Boojin Subject: Re: [PATCH v8 07/11] scsi: ufs: Add inline encryption support to UFS Message-ID: <20200315184843.GE1055@sol.localdomain> References: <20200312080253.3667-1-satyat@google.com> <20200312080253.3667-8-satyat@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200312080253.3667-8-satyat@google.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Mar 12, 2020 at 01:02:49AM -0700, Satya Tangirala wrote: > @@ -2470,6 +2504,9 @@ static int ufshcd_compose_dev_cmd(struct ufs_hba *hba, > lrbp->task_tag = tag; > lrbp->lun = 0; /* device management cmd is not specific to any LUN */ > lrbp->intr_cmd = true; /* No interrupt aggregation */ > +#ifdef CONFIG_SCSI_UFS_CRYPTO > + lrbp->crypto_enable = false; /* No crypto operations */ > +#endif > hba->dev_cmd.type = cmd_type; Doesn't this need to be initialized in ufshcd_issue_devman_upiu_cmd() too?