Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22375
b: refs/heads/master
c: f59b0cf
h: refs/heads/master
i:
  22373: 3270a55
  22371: 3c74f1f
  22367: c3f4585
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Mar 22, 2006
1 parent 9221f60 commit 266ab63
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41ade50c4eff9477e6aef6b15e84673c6758ec0d
refs/heads/master: f59b0cf8a3a39b75e580066c6a9aeabd97ec2743
1 change: 0 additions & 1 deletion trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3909,7 +3909,6 @@ static inline int ata_should_dma_map(struct ata_queued_cmd *qc)

case ATA_PROT_ATAPI:
case ATA_PROT_PIO:
case ATA_PROT_PIO_MULT:
if (ap->flags & ATA_FLAG_PIO_DMA)
return 1;

Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/scsi/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2379,9 +2379,6 @@ ata_scsi_map_proto(u8 byte1)

case 4: /* PIO Data-in */
case 5: /* PIO Data-out */
if (byte1 & 0xe0) {
return ATA_PROT_PIO_MULT;
}
return ATA_PROT_PIO;

case 10: /* Device Reset */
Expand Down Expand Up @@ -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)
goto invalid_fld;

if (scsicmd[1] & 0xe0)
/* PIO multi not supported yet */
goto invalid_fld;

/*
* 12 and 16 byte CDBs use different offsets to
* provide the various register values.
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/ata.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ enum ata_tf_protocols {
ATA_PROT_UNKNOWN, /* unknown/invalid */
ATA_PROT_NODATA, /* no data */
ATA_PROT_PIO, /* PIO single sector */
ATA_PROT_PIO_MULT, /* PIO multiple sector */
ATA_PROT_DMA, /* DMA */
ATA_PROT_ATAPI, /* packet command, PIO data xfer*/
ATA_PROT_ATAPI_NODATA, /* packet command, no data */
Expand Down

0 comments on commit 266ab63

Please sign in to comment.