summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-acpi.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-04-23 02:06:46 +0900
committerJeff Garzik <jeff@garzik.org>2007-05-09 20:15:46 -0400
commit48be6b18336567a795bc41e4526f9adfb3a3d68e (patch)
tree41bca21966fe455b96bf4f1cbbe888608fa21d55 /drivers/ata/libata-acpi.c
parent3cb7396b7b26585b1ab7c1a8ca554ec103da5d37 (diff)
downloadop-kernel-dev-48be6b18336567a795bc41e4526f9adfb3a3d68e.zip
op-kernel-dev-48be6b18336567a795bc41e4526f9adfb3a3d68e.tar.gz
libata-acpi: fix _GTF command protocol for ATAPI devices
_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>
Diffstat (limited to 'drivers/ata/libata-acpi.c')
-rw-r--r--drivers/ata/libata-acpi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/libata-acpi.c b/drivers/ata/libata-acpi.c
index 03a0acf..cb3eab6e 100644
--- a/drivers/ata/libata-acpi.c
+++ b/drivers/ata/libata-acpi.c
@@ -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 */
OpenPOWER on IntegriCloud