aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 3dd0e942df36..bb9e025522ba 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4374,11 +4374,11 @@ static unsigned int ata_dev_set_xfermode(struct ata_device *dev)
4374 tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_POLLING; 4374 tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_POLLING;
4375 tf.protocol = ATA_PROT_NODATA; 4375 tf.protocol = ATA_PROT_NODATA;
4376 /* If we are using IORDY we must send the mode setting command */ 4376 /* If we are using IORDY we must send the mode setting command */
4377 if (ata_pio_need_iordy(dev)) 4377 if (ata_pio_need_iordy(dev))
4378 tf.nsect = dev->xfer_mode; 4378 tf.nsect = dev->xfer_mode;
4379 /* If the device has IORDY and the controller does not - turn it off */ 4379 /* If the device has IORDY and the controller does not - turn it off */
4380 else if (ata_id_has_iordy(dev->id)) 4380 else if (ata_id_has_iordy(dev->id))
4381 tf.nsect = 0x01; 4381 tf.nsect = 0x01;
4382 else /* In the ancient relic department - skip all of this */ 4382 else /* In the ancient relic department - skip all of this */
4383 return 0; 4383 return 0;
4384 4384