Skip to contentSkip to conversation

libata: Support for an ATA PASS-THROUGH(32) command.

PATCH Applied Minwoo Im 2 participants 2 messages Jun 23, 2017 – Jun 27, 2017

Subsystems (2)
lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

PATCH 1/1 libata: Support for an ATA PASS-THROUGH(32) command.

SAT-4(SCSI/ATA Translation) supports for an ata pass-thru(32). This patch will allow to translate an ata pass-thru(32) SCSI cmd to an ATA cmd.

---
 drivers/ata/libata-core.c |    2 +-
 drivers/ata/libata-scsi.c |   72 +++++++++++++++++++++++++++++++++++++++++----
 include/scsi/scsi_proto.h |    1 +
 3 files changed, 69 insertions(+), 6 deletions(-)
drivers/ata/libata-core.c +1 -1
index 2d83b8c..4777e76 100644
@@ -2587,7 +2587,7 @@ int ata_dev_configure(struct ata_device *dev)
 		}
 		ata_dev_config_sense_reporting(dev);
 		ata_dev_config_zac(dev);
-		dev->cdb_len = 16;
+		dev->cdb_len = 32;
 	}
 
 	/* ATAPI-specific feature tests */
drivers/ata/libata-scsi.c +67 -5

119 lines not on this page · raw message

include/scsi/scsi_proto.h +1 -0
index ce78ec8..06076b8 100644
@@ -162,6 +162,7 @@
 #define VERIFY_32	      0x0a
 #define WRITE_32	      0x0b
 #define WRITE_SAME_32	      0x0d
+#define ATA_32		      0x1ff0
 
 /* Values for T10/04-262r7 */
 #define	ATA_16		      0x85	/* 16-byte pass-thru */
Signature · 1 line
1.7.9.5