Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1483514ybj; Fri, 8 May 2020 02:20:30 -0700 (PDT) X-Google-Smtp-Source: APiQypK/yaKqIfqWwglELoK7C09Je1scekqRw5pHwqXZMTSUDaHg+xci+PHdNgW0ih/zYLnJZW9b X-Received: by 2002:a05:6402:391:: with SMTP id o17mr1310773edv.71.1588929630485; Fri, 08 May 2020 02:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588929630; cv=none; d=google.com; s=arc-20160816; b=gvy4/HxqgXYFqW/jk8P0VBGkzuIr2Kw3I69TFZkFxlp/PDW6IXMTw2594lBRgoq8KD F0rh/WPvMAcgMuXt6JDdpwelxLs6IEvjNOKH9GPVgoTn8cHPbCSHVPaKM5WKzqvjwD6W VAxaQagzD1rOjKNTISc7P2OunzKFGhP2A+0nVC8ScFFrPeWnetW76OMgXiPp2RtZqIg7 6eUN9GJwctyDfBraQ+L4eQHo5NDoSMp4mOAVutOrxK1Cw8MyFIUJCkBGoeS8CIrLXxGO 4Mg43/+e98X0r4KKM0w97z0cBQy90vt99DZmtPKyfyrx/0P4NGn6bqSrM9H8xOAQUjDe ByhA== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=6Lv9uDjkppOStZ32t12pHufk6Qwcf3rJNdN9DkJLtNs=; b=SYiFfE+rzWswLxSIBMr/H6x/zBt9IcD1/HiGQLU0snWYJUIPAvZYzfbIfHjViFUWuf 5TkzraSWqCURhrh8p0KzGJi1nA9jeIPIW6ytSyTfXxaysd2qohtcnd43F8ME/oTTXzV/ O3GwUhsj62qe/ch/9XsLc/HcwlDIB/DZML4yVHIWVg88ROt8P08DyTMM5oge1HNJSnAM LT7mFzAoPR/L3hRZj4oNQhQFH3/04UhTdjWibyqLXpXHLaJ/oCIbg/Xor2d5WSQ+oe1U m+F6LJpZ7/UiyesH/f+cO2xAc14V9Ijyufu4I7Zs0PG+GBhpVYUyXMm+9dZ2Ob6afZTA 0PCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q4C6RqS8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si552738edp.0.2020.05.08.02.20.08; Fri, 08 May 2020 02:20:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q4C6RqS8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726797AbgEHJPs (ORCPT + 99 others); Fri, 8 May 2020 05:15:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgEHJPr (ORCPT ); Fri, 8 May 2020 05:15:47 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19371C05BD43; Fri, 8 May 2020 02:15:46 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id y3so1010698wrt.1; Fri, 08 May 2020 02:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=6Lv9uDjkppOStZ32t12pHufk6Qwcf3rJNdN9DkJLtNs=; b=Q4C6RqS8kQEgDF388uxPXhT9ittdOv1qUOdQCseeggDd3P1mdS0YI1XcBfoKmPHZJZ JAro9bLcqafl5B1Z3/GS9w5T98klSaZ0+OZv+cBnsj8wMTf4QKrXDfXv2+h4Cv5swSn6 kTXvHSx4Bgm6lMn2domzoAHBKziY65pEgt5j+1rHvi4KjhfnwIbOH82Ch6J8inL85Kou 24oezoa91tGzxK2pT/5CRoOIAknw8nqQhyU1pmyn7rxePXkwwcW3+hLN6XSjCyGteaFz Nu/vwa2jInHDFQcF50v39fJyOU2Izf4/TJg3b8HrUtKoPUIQxhQrC/ND/qJ/67OKT+RX vMuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=6Lv9uDjkppOStZ32t12pHufk6Qwcf3rJNdN9DkJLtNs=; b=DP6K1D8lBTUehPizSXV/oUlQSJELIUM9Gj4TMx0NSu13pGnQFGqL+pQD8ch45S+7uS 64HWAe4ZJoCZHB8m5zPTiNMqMyLD+x5uiTaIBZdQCtAsC4fkZAN1Fbz7H8Y8+1yhUw0a 3bcqmp4Ui6uVLuCqsOcuOTRqZWC/+/F6KvSJjELyMd575e+OV0g4Df4aQWbz7ZN3xJ+u G2AZO7e6MGZIC9L/9Fea4L6zQUN3XSAA/PxwbF9Dh0fVaOGJBEa6Q8AZL8Mkh4t69fdV bqudKNo068BHCo4i4HuZwExmOBYT3ILNTVdXPU13C2qxM020KaytowPESoGdxDP/LHSg OqyA== X-Gm-Message-State: AGi0PuYJBYWccGiEA60jmUSLIZfDlB/KGEVyMmBH/UU/4f9nlUF1GaaA rDFP0Jyn99eYY8Umw8S//Hk= X-Received: by 2002:adf:d841:: with SMTP id k1mr1770183wrl.129.1588929344877; Fri, 08 May 2020 02:15:44 -0700 (PDT) Received: from ubuntu-G3 (ip5f5bfcc8.dynamic.kabel-deutschland.de. [95.91.252.200]) by smtp.googlemail.com with ESMTPSA id n18sm1906356wrw.90.2020.05.08.02.15.43 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 May 2020 02:15:44 -0700 (PDT) Message-ID: <5a88c8a33e77ea2fc086cfbf1aeb1c0b3b6843c2.camel@gmail.com> Subject: Re: [RESENT PATCH RFC v3 3/5] scsi: ufs: add ufs_features parameter in structure ufs_dev_info From: Bean Huo To: Bart Van Assche , alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, tomas.winkler@intel.com, rdunlap@infradead.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org, cang@codeaurora.org Date: Fri, 08 May 2020 11:15:43 +0200 In-Reply-To: References: <20200504142032.16619-1-beanhuo@micron.com> <20200504142032.16619-4-beanhuo@micron.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-05-07 at 18:02 -0700, Bart Van Assche wrote: > On 2020-05-04 07:20, huobean@gmail.com wrote: > > From: Bean Huo > > > > Make a copy of bUFSFeaturesSupport, name it ufs_features, add it > > to structure ufs_dev_info. > > > > Signed-off-by: Bean Huo > > --- > > drivers/scsi/ufs/ufs.h | 2 ++ > > drivers/scsi/ufs/ufshcd.c | 2 ++ > > 2 files changed, 4 insertions(+) > > > > diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h > > index 53a5e263f7c8..1f2d4b4950b8 100644 > > --- a/drivers/scsi/ufs/ufs.h > > +++ b/drivers/scsi/ufs/ufs.h > > @@ -543,6 +543,8 @@ struct ufs_dev_info { > > u16 hpb_ver; > > /* bHPBControl */ > > u8 hpb_control_mode; > > + /* bUFSFeaturesSupport */ > > + u8 ufs_features; > > }; > > > > /** > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > > index 83ed2879d930..1fe7ffc1a75a 100644 > > --- a/drivers/scsi/ufs/ufshcd.c > > +++ b/drivers/scsi/ufs/ufshcd.c > > @@ -6625,6 +6625,8 @@ static int ufs_get_device_desc(struct ufs_hba > > *hba) > > goto out; > > } > > > > + dev_info->ufs_features = desc_buf[DEVICE_DESC_PARAM_UFS_FEAT]; > > + > > if (desc_buf[DEVICE_DESC_PARAM_UFS_FEAT] & 0x80) { > > hba->dev_info.hpb_control_mode = > > desc_buf[DEVICE_DESC_PARAM_HPB_CTRL_MODE]; > > Since this patch touches the same code as patch 1/5, please merge > patches 1/5 and 3/5 into a single patch. > > Thanks, > > Bart. Bart you have addressed this in the V2, sorry for this fault. I will merge them in the next version. thanks, Bean > >