Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1215932ybj; Thu, 7 May 2020 18:06:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJt8JsbHpN6ToZghxHgVejJqLOA1QZO4T6/wsifmcndVELLWIJYzt9Wimq+iilFyuK751Jf X-Received: by 2002:a17:906:25cb:: with SMTP id n11mr15213927ejb.37.1588899995013; Thu, 07 May 2020 18:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588899995; cv=none; d=google.com; s=arc-20160816; b=UBR2MW0MOqUxCaN2gp30g0YO8p6tg/TFWckXskJiFMHf8NTQKsBUT7lKBT8Ner1SSU BLZNqDXtSkZ6H6H3vzgndToG2dY6PNgl7pvjZIGSzkNXCaI+1ih6gknNK8Sgjon1yLTH 6gbbNX1mW49wB2jhZHEAeoBQ1Q2bUKRG5NfU1dMQMmWgmwMOh9mbXlwqt3F19tMd70s9 FYslJnOjKWjyFV6GfJ4bgVanYTNtcZCOfcqTVDQ6swLA2oHumrUE2ih2zT1DrHzN7N28 zlund3uBC26P0KbiF1t65rsNWD/9ZKZ+/6Ls5J/h5kKdg1N+aoVio/G32rhua/FNBhlx lKyA== 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:autocrypt:from:references:cc:to:subject; bh=QfiPaS5tEiLl/kQo57rb3xlvnudHi9Euse23Tg6CV1Q=; b=DMFAp0LI3s12xABvbsP1d8EdomtiisgAXf67cOjP5+KiqekywG8dXG+teUDOF/eVYu b0Y5pUIV6noluR7mi31SGGXqOLkOndCzmT52FM6l2iLu/p8e7TdZ5z0cJvFEZWb8mM99 KuAAse9+n4ahRzZ16jGIAYKCx/G5XuANRmnYbBHqEda9ODEg6D45tNiFWw1R6UaHuOr0 W7Y540O7cKDwQRIneYOrREO5cvXZg/i21GFSBDjD6XglBP7DUgjVuCedqIc7/K9EXcL0 mhvlx5aHCLRekzNIaLXPAF23a0WyGu7i9w3UbjujRZO0ymICnknZ30q2F23FxzDmijvc yw5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si82915edp.2.2020.05.07.18.06.11; Thu, 07 May 2020 18:06:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726689AbgEHBCi (ORCPT + 99 others); Thu, 7 May 2020 21:02:38 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41798 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbgEHBCi (ORCPT ); Thu, 7 May 2020 21:02:38 -0400 Received: by mail-pl1-f194.google.com with SMTP id u10so2822430pls.8; Thu, 07 May 2020 18:02:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=QfiPaS5tEiLl/kQo57rb3xlvnudHi9Euse23Tg6CV1Q=; b=tZZdyyFzkijFOlSD1bMvwHJqlZdHt9rUWs/QLtyAwaC4ww0WAM05P1LXcpb15S0P/s tYQPtpY2MGDpUbn32XOts+C83zq0YwUD0kEtg6IaDl7Fe6VznkL+PoQooZ9MP0UxNMoq KlaZ2rBvPQlpnRLwiXZM3rMN7PtQkyx9bXHKVaFSPCjLfhpIoo2hjZFyGqadaPkq1ARm vr+haT1u3xhp1dMwYfRmoN0wyAHzrYj8XOdxxDnMIVZqyFcXhSZPJAs78rBeWP88in7m fOM8WAcr4soRf1Y7BHVbX2r9x1FzU1xxgEpLj3OseVW3JjxtWr2OqZZxyDCHiCxFeuYC GChw== X-Gm-Message-State: AGi0PuZbNQZ25hKFdbopWX3W2foFCBPYiED1IV+nGjrf4yGZV0XP36lg Ydi2Eowu8C0MHRLxJYdLZ2g= X-Received: by 2002:a17:90a:3450:: with SMTP id o74mr3248459pjb.159.1588899757487; Thu, 07 May 2020 18:02:37 -0700 (PDT) Received: from ?IPv6:2601:647:4000:d7:8ce8:d4c:1f4f:21e0? ([2601:647:4000:d7:8ce8:d4c:1f4f:21e0]) by smtp.gmail.com with ESMTPSA id g10sm292pfk.103.2020.05.07.18.02.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 May 2020 18:02:36 -0700 (PDT) Subject: Re: [RESENT PATCH RFC v3 3/5] scsi: ufs: add ufs_features parameter in structure ufs_dev_info To: huobean@gmail.com, 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, cang@codeaurora.org, rdunlap@infradead.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org References: <20200504142032.16619-1-beanhuo@micron.com> <20200504142032.16619-4-beanhuo@micron.com> From: Bart Van Assche Autocrypt: addr=bvanassche@acm.org; prefer-encrypt=mutual; keydata= mQENBFSOu4oBCADcRWxVUvkkvRmmwTwIjIJvZOu6wNm+dz5AF4z0FHW2KNZL3oheO3P8UZWr LQOrCfRcK8e/sIs2Y2D3Lg/SL7qqbMehGEYcJptu6mKkywBfoYbtBkVoJ/jQsi2H0vBiiCOy fmxMHIPcYxaJdXxrOG2UO4B60Y/BzE6OrPDT44w4c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5hcZMT9Eo998alUfn5XU0RQDYdwp6/kMEXMdmT oH0F0xB3SQ8WVSXA9rrc4EBvZruWQ+5/zjVrhhfUAx12CzL4oQ9Ro2k45daYaonKTANYG22y //x8dLe2Fv1By4SKGhmzwH87uXxbTJAUxiWIi1np0z3/RDnoVyfmfbbL1DY7zf2hYXLLzsJR mSsED/1nlJ9Oq5fALdNEPgDyPUerqHxcmIub+pF0AzJoYHK5punqpqfGmqPbjxrJLPJfHVKy goMj5DlBMoYqEgpbwdUYkH6QdizJJCur4icy8GUNbisFYABeoJ91pnD4IGei3MTdvINSZI5e Message-ID: Date: Thu, 7 May 2020 18:02:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200504142032.16619-4-beanhuo@micron.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 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.