From: Bart Van Assche <bvanassche@acm.org>
To: Avri Altman <avri.altman@wdc.com>,
"James E . J . Bottomley" <jejb@linux.ibm.com>,
"Martin K . Petersen" <martin.petersen@oracle.com>
Cc: Bean Huo <beanhuo@micron.com>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] scsi: ufs: Remove support for old UFSHCI versions
Date: Tue, 26 Mar 2024 10:20:13 -0700 [thread overview]
Message-ID: <7d3a83b5-6dc7-40d2-8a2e-bd5157a3f8ea@acm.org> (raw)
In-Reply-To: <20240326083253.1303-2-avri.altman@wdc.com>
On 3/26/24 01:32, Avri Altman wrote:
> @@ -992,10 +976,6 @@ EXPORT_SYMBOL_GPL(ufshcd_is_hba_active);
>
> u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba)
> {
> - /* HCI version 1.0 and 1.1 supports UniPro 1.41 */
> - if (hba->ufs_version <= ufshci_version(1, 1))
> - return UFS_UNIPRO_VER_1_41;
> - else
> return UFS_UNIPRO_VER_1_6;
> }
Please fix the indentation of the only remaining return statement in
this function.
> @@ -5565,15 +5524,13 @@ void ufshcd_compl_one_cqe(struct ufs_hba *hba, int task_tag,
> ufshcd_release_scsi_cmd(hba, lrbp);
> /* Do not touch lrbp after scsi done */
> scsi_done(cmd);
> - } else if (lrbp->command_type == UTP_CMD_TYPE_DEV_MANAGE ||
> - lrbp->command_type == UTP_CMD_TYPE_UFS_STORAGE) {
> - if (hba->dev_cmd.complete) {
> - if (cqe) {
> - ocs = le32_to_cpu(cqe->status) & MASK_OCS;
> - lrbp->utr_descriptor_ptr->header.ocs = ocs;
> - }
> - complete(hba->dev_cmd.complete);
> + } else {
> + WARN_ON(!hba->dev_cmd.complete);
> + if (cqe) {
> + ocs = le32_to_cpu(cqe->status) & MASK_OCS;
> + lrbp->utr_descriptor_ptr->header.ocs = ocs;
> }
> + complete(hba->dev_cmd.complete);
> }
> }
The above is a functional change that has not been mentioned in the
patch description. Please undo the functional change or explain in the
patch description why this is considered correct.
Thanks,
Bart.
next prev parent reply other threads:[~2024-03-26 17:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-26 8:32 [PATCH 0/2] Remove support for legacy UFS Avri Altman
2024-03-26 8:32 ` [PATCH 1/2] scsi: ufs: Remove support for old UFSHCI versions Avri Altman
2024-03-26 17:20 ` Bart Van Assche [this message]
2024-03-26 17:22 ` Christoph Hellwig
2024-03-26 18:09 ` Avri Altman
2024-03-26 18:09 ` Avri Altman
2024-03-26 8:32 ` [PATCH 2/2] scsi: ufs: Remove legacy tuning calls Avri Altman
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=7d3a83b5-6dc7-40d2-8a2e-bd5157a3f8ea@acm.org \
--to=bvanassche@acm.org \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@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