libata: Support for an ATA PASS-THROUGH(32) command.
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.
Signed-off-by Minwoo Im <[email protected]>
Reviewed-by Bart Van Assche <[email protected]>
--- 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
@@ -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
@@ -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
Tejun Heo
AppliedQuoted 6 lines · Minwoo Im
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.
Signed-off-by Minwoo Im <[email protected]>Reviewed-by Bart Van Assche <[email protected]>
Applied to libata/for-4.13.
Thanks.
Signature · 1 line
tejun