libata-dev: Remove ATA_PROT_PIO_MULT
PATCH 1/1 libata-dev: Remove ATA_PROT_PIO_MULT
Remove the ATA_PROT_PIO_MULT protocol.
---
The ATA_PROT_PIO_MULT can be handled as ATA_PROT_PIO. Remove it.
Changes:
- Remove the ATA_PROT_PIO_MULT protocol
- Filter out the PIO multi commands in ATA pass through
Patch against the upstream branch
(fb21f0d0ec7e31cc814165e1a9d2662d9c9dd980).
For your review, thanks,
Albert
include/linux/ata.h +0 -1
@@ -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 */
drivers/scsi/libata-scsi.c +4 -3
@@ -2356,9 +2356,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 */
@@ -2397,6 +2394,10 @@ ata_scsi_pass_thru(struct ata_queued_cmdif ((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.
drivers/scsi/libata-core.c +0 -1
@@ -3905,7 +3905,6 @@ static inline int ata_should_dma_map(strcase ATA_PROT_ATAPI :case ATA_PROT_PIO : -case ATA_PROT_PIO_MULT :if (ap->flags &ATA_FLAG_PIO_DMA )return 1 ;
Quoted 11 lines · Albert Lee
Remove the
ATA_PROT_PIO_MULTprotocol.Signed-off-by Albert Lee <[email protected]>---
The
ATA_PROT_PIO_MULTcan be handled asATA_PROT_PIO. Remove it.Changes:
- Remove theATA_PROT_PIO_MULTprotocol
- Filter out the PIO multi commands in ATA pass through
applied. it would be nice if you would move the text following "Changes:" from the Albert-comments section to the actual patch description. Anything that can help describe the rationale behind the patch belongs in the main patch description.
The section after the "---" is for related comments, questions, worries, insults, etc. :)
Jeff