Commit f59b0cf8 authored by Albert Lee's avatar Albert Lee Committed by Jeff Garzik

[PATCH] libata-dev: Remove ATA_PROT_PIO_MULT

Remove the ATA_PROT_PIO_MULT protocol.
Signed-off-by: default avatarAlbert Lee <albertcc@tw.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 41ade50c
...@@ -3909,7 +3909,6 @@ static inline int ata_should_dma_map(struct ata_queued_cmd *qc) ...@@ -3909,7 +3909,6 @@ static inline int ata_should_dma_map(struct ata_queued_cmd *qc)
case ATA_PROT_ATAPI: case ATA_PROT_ATAPI:
case ATA_PROT_PIO: case ATA_PROT_PIO:
case ATA_PROT_PIO_MULT:
if (ap->flags & ATA_FLAG_PIO_DMA) if (ap->flags & ATA_FLAG_PIO_DMA)
return 1; return 1;
......
...@@ -2379,9 +2379,6 @@ ata_scsi_map_proto(u8 byte1) ...@@ -2379,9 +2379,6 @@ ata_scsi_map_proto(u8 byte1)
case 4: /* PIO Data-in */ case 4: /* PIO Data-in */
case 5: /* PIO Data-out */ case 5: /* PIO Data-out */
if (byte1 & 0xe0) {
return ATA_PROT_PIO_MULT;
}
return ATA_PROT_PIO; return ATA_PROT_PIO;
case 10: /* Device Reset */ case 10: /* Device Reset */
...@@ -2420,6 +2417,10 @@ ata_scsi_pass_thru(struct ata_queued_cmd *qc, const u8 *scsicmd) ...@@ -2420,6 +2417,10 @@ ata_scsi_pass_thru(struct ata_queued_cmd *qc, const u8 *scsicmd)
if ((tf->protocol = ata_scsi_map_proto(scsicmd[1])) == ATA_PROT_UNKNOWN) if ((tf->protocol = ata_scsi_map_proto(scsicmd[1])) == ATA_PROT_UNKNOWN)
goto invalid_fld; goto invalid_fld;
if (scsicmd[1] & 0xe0)
/* PIO multi not supported yet */
goto invalid_fld;
/* /*
* 12 and 16 byte CDBs use different offsets to * 12 and 16 byte CDBs use different offsets to
* provide the various register values. * provide the various register values.
......
...@@ -204,7 +204,6 @@ enum ata_tf_protocols { ...@@ -204,7 +204,6 @@ enum ata_tf_protocols {
ATA_PROT_UNKNOWN, /* unknown/invalid */ ATA_PROT_UNKNOWN, /* unknown/invalid */
ATA_PROT_NODATA, /* no data */ ATA_PROT_NODATA, /* no data */
ATA_PROT_PIO, /* PIO single sector */ ATA_PROT_PIO, /* PIO single sector */
ATA_PROT_PIO_MULT, /* PIO multiple sector */
ATA_PROT_DMA, /* DMA */ ATA_PROT_DMA, /* DMA */
ATA_PROT_ATAPI, /* packet command, PIO data xfer*/ ATA_PROT_ATAPI, /* packet command, PIO data xfer*/
ATA_PROT_ATAPI_NODATA, /* packet command, no data */ ATA_PROT_ATAPI_NODATA, /* packet command, no data */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment