mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
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>
This commit is contained in:
parent
3cb7396b7b
commit
48be6b1833
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user