From: Igor Pylypiv <ipylypiv@google.com>
To: Damien Le Moal <dlemoal@kernel.org>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
linux-scsi@vger.kernel.org, Niklas Cassel <niklas.cassel@wdc.com>,
Jack Wang <jinpu.wang@cloud.ionos.com>
Subject: Re: [PATCH 1/3] ata: libata: Introduce ata_qc_has_cdl()
Date: Fri, 18 Aug 2023 13:47:46 -0700 [thread overview]
Message-ID: <ZN/Y8nkC1HVjJbQ4@google.com> (raw)
In-Reply-To: <f0de3678-ab9f-1e0d-029e-f5859e82160f@kernel.org>
On Fri, Aug 18, 2023 at 08:11:39AM +0900, Damien Le Moal wrote:
> On 2023/08/18 6:41, Igor Pylypiv wrote:
> > Introduce the inline helper function ata_qc_has_cdl() to test if
> > a queued command has a Command Duration Limits descriptor set.
> >
> > Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
> > ---
> > include/linux/libata.h | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/include/linux/libata.h b/include/linux/libata.h
> > index 820f7a3a2749..bc7870f1f527 100644
> > --- a/include/linux/libata.h
> > +++ b/include/linux/libata.h
> > @@ -1062,6 +1062,11 @@ static inline bool ata_port_is_frozen(const struct ata_port *ap)
> > return ap->pflags & ATA_PFLAG_FROZEN;
> > }
> >
> > +static inline bool ata_qc_has_cdl(struct ata_queued_cmd *qc)
> > +{
> > + return qc->flags & ATA_QCFLAG_HAS_CDL;
> > +}
>
> This is used in one place only in patch 3, and the only other place we test this
> flag is in ata_build_rw_tf(). So I do not think this is necessary. Let's drop this.
Thanks Damien! I'll drop this patch in v2.
As discussed in PATCH 2/3 we'll check for ATA_QCFLAG_RESULT_TF instead.
>
> > +
> > extern int ata_std_prereset(struct ata_link *link, unsigned long deadline);
> > extern int ata_wait_after_reset(struct ata_link *link, unsigned long deadline,
> > int (*check_ready)(struct ata_link *link));
>
> --
> Damien Le Moal
> Western Digital Research
>
Thanks,
Igor
prev parent reply other threads:[~2023-08-18 20:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-17 21:41 [PATCH 1/3] ata: libata: Introduce ata_qc_has_cdl() Igor Pylypiv
2023-08-17 21:41 ` [PATCH 2/3] scsi: libsas: Add return_fis_on_success to sas_ata_task Igor Pylypiv
2023-08-17 23:12 ` Damien Le Moal
2023-08-17 23:50 ` Niklas Cassel
2023-08-18 0:06 ` Damien Le Moal
2023-08-17 23:36 ` Niklas Cassel
2023-08-18 0:08 ` Damien Le Moal
2023-08-18 0:37 ` Niklas Cassel
2023-08-18 0:09 ` Damien Le Moal
2023-08-18 1:08 ` Niklas Cassel
2023-08-18 22:00 ` Igor Pylypiv
2023-08-17 21:41 ` [PATCH 3/3] scsi: pm80xx: Set RETFIS when requested by libsas Igor Pylypiv
2023-08-17 23:12 ` Damien Le Moal
2023-08-18 22:45 ` Igor Pylypiv
2023-08-17 23:11 ` [PATCH 1/3] ata: libata: Introduce ata_qc_has_cdl() Damien Le Moal
2023-08-18 20:47 ` Igor Pylypiv [this message]
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=ZN/Y8nkC1HVjJbQ4@google.com \
--to=ipylypiv@google.com \
--cc=dlemoal@kernel.org \
--cc=jejb@linux.ibm.com \
--cc=jinpu.wang@cloud.ionos.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=niklas.cassel@wdc.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