public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ata: libata: Introduce ata_qc_has_cdl()
@ 2023-08-17 21:41 Igor Pylypiv
  2023-08-17 21:41 ` [PATCH 2/3] scsi: libsas: Add return_fis_on_success to sas_ata_task Igor Pylypiv
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Igor Pylypiv @ 2023-08-17 21:41 UTC (permalink / raw)
  To: Martin K. Petersen, James E.J. Bottomley, Damien Le Moal
  Cc: linux-scsi, Niklas Cassel, Jack Wang, Igor Pylypiv

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;
+}
+
 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));
-- 
2.42.0.rc1.204.g551eb34607-goog


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-08-18 22:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox