]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
[PATCH] libata-dev: Remove ATA_PROT_PIO_MULT
authorAlbert Lee <albertcc@tw.ibm.com>
Thu, 16 Mar 2006 09:59:22 +0000 (17:59 +0800)
committerJeff Garzik <jeff@garzik.org>
Wed, 22 Mar 2006 01:39:46 +0000 (20:39 -0500)
Remove the ATA_PROT_PIO_MULT protocol.

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c
include/linux/ata.h

index a28569d0081dfe6e052f63573e4147182c43dfe3..7a5392c8ec6fe693d01edcda1ee738df35bd8ec4 100644 (file)
@@ -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;
 
index 3aaa74cbef1d2b0b14acdcb363eb8e140298040a..cebf9b31b516ee5a5ae75d19df22a75f3d692cca 100644 (file)
@@ -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 */
@@ -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.
index b02a16c435e78b6da13376238bb345aa2ac4ab12..6b188b3b61dd6de320c1d7328ba9d60dd17ddcc3 100644 (file)
@@ -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 */