]> err.no Git - linux-2.6/commitdiff
libata-acpi: fix _GTF command protocol for ATAPI devices
authorTejun Heo <htejun@gmail.com>
Sun, 22 Apr 2007 17:06:46 +0000 (02:06 +0900)
committerJeff Garzik <jeff@garzik.org>
Thu, 10 May 2007 00:15:46 +0000 (20:15 -0400)
_GTF command is never ATA_PROT_ATAPI_NODATA whether the device is
ATAPI or not.  It's always ATA_PROT_NODATA.

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

index 03a0acff6cfa495b916e56de667542116700a39b..cb3eab6e379da2ab9ef8dd6b17021c2d7abaf6ad 100644 (file)
@@ -489,8 +489,7 @@ static void taskfile_load_raw(struct ata_port *ap,
 
        /* convert gtf to tf */
        tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; /* TBD */
-       tf.protocol = atadev->class == ATA_DEV_ATAPI ?
-               ATA_PROT_ATAPI_NODATA : ATA_PROT_NODATA;
+       tf.protocol = ATA_PROT_NODATA;
        tf.feature = gtf->tfa[0];       /* 0x1f1 */
        tf.nsect   = gtf->tfa[1];       /* 0x1f2 */
        tf.lbal    = gtf->tfa[2];       /* 0x1f3 */