]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
libata: kill ATA_DNXFER_ANY
authorTejun Heo <htejun@gmail.com>
Fri, 2 Feb 2007 07:22:31 +0000 (16:22 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 21 Feb 2007 09:58:17 +0000 (04:58 -0500)
ATA_DNXFER_ANY isn't used anymore.  Kill it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c
drivers/ata/libata.h

index 24c6505f062d8cd6c782e76a9f8bd4e747d89548..407e7e15c252d01d3a970c48e9de5a61bd1a5b98 100644 (file)
@@ -2360,15 +2360,6 @@ int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel)
                udma_mask = 0;
                break;
 
-       case ATA_DNXFER_ANY:
-               /* don't gear down to MWDMA from UDMA, go directly to PIO */
-               if (xfer_mask & ATA_MASK_UDMA)
-                       xfer_mask &= ~ATA_MASK_MWDMA;
-
-               highbit = fls(xfer_mask) - 1;
-               xfer_mask &= ~(1 << highbit);
-               break;
-
        default:
                BUG();
        }
index 8533de67d87e531ad00a9c9bcdf29f8754220440..29bd7f80fc40da4c1227da2e9ef739529f4b6c8a 100644 (file)
@@ -48,7 +48,6 @@ enum {
        ATA_DNXFER_40C          = 2,    /* apply 40c cable limit */
        ATA_DNXFER_FORCE_PIO    = 3,    /* force PIO */
        ATA_DNXFER_FORCE_PIO0   = 4,    /* force PIO0 */
-       ATA_DNXFER_ANY          = 5,    /* speed down any */
 
        ATA_DNXFER_QUIET        = (1 << 31),
 };