Re: [PATCH] target: Handle ATA_PASS_THROUGH_16 passthrough

From: James Bottomley
Date: Wed May 16 2012 - 03:38:11 EST


On Wed, 2012-05-16 at 13:33 +0800, mengcong wrote:
> The cdrecord uses ATA_PASS_THROUGH_16 command while burning CDs
> with a SATA CD-ROM. This patch adds support to it so that PSCSI
> CD-ROM passthrough works with the cdrecord.
>
> Signed-off-by: Cong Meng <mc@xxxxxxxxxxxxxxxxxx>
> ---
[...]
> diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
> index f34a5a8..f6dcd25 100644
> --- a/include/scsi/scsi.h
> +++ b/include/scsi/scsi.h
> @@ -116,6 +116,7 @@ struct scsi_cmnd;
> #define PERSISTENT_RESERVE_IN 0x5e
> #define PERSISTENT_RESERVE_OUT 0x5f
> #define VARIABLE_LENGTH_CMD 0x7f
> +#define ATA_PASS_THROUGH_16 0x85
> #define REPORT_LUNS 0xa0
> #define SECURITY_PROTOCOL_IN 0xa2
> #define MAINTENANCE_IN 0xa3

We already have this: they're called ATA_16 (and ATA_12) in this very
file.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/