aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:52 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:52 -0400
commit3c09384e95fa4048a06f179849901f3e57266d58 (patch)
tree2fbcca5141ea6f6e2c81edc3455cfe37af7fb3f3 /drivers
parent6e6afb3b7401f0181da74a1add57f126946b43e6 (diff)
ide: change order of register access in ide_config_drive_speed()
Write ATA Feature register before ATA Sector Count register as a preparation to use ->tf_load in ide_config_drive_speed(). This change shouldn't affect anything (just an usual paranoia). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/ide-iops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index 41ec53f329fa..0a3a5068f04b 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -828,8 +828,8 @@ int ide_config_drive_speed(ide_drive_t *drive, u8 speed)
828 SELECT_MASK(drive, 0); 828 SELECT_MASK(drive, 0);
829 udelay(1); 829 udelay(1);
830 hwif->set_irq(hwif, 0); 830 hwif->set_irq(hwif, 0);
831 hwif->OUTB(speed, io_ports->nsect_addr);
832 hwif->OUTB(SETFEATURES_XFER, io_ports->feature_addr); 831 hwif->OUTB(SETFEATURES_XFER, io_ports->feature_addr);
832 hwif->OUTB(speed, io_ports->nsect_addr);
833 hwif->exec_command(hwif, WIN_SETFEATURES); 833 hwif->exec_command(hwif, WIN_SETFEATURES);
834 if (drive->quirk_list == 2) 834 if (drive->quirk_list == 2)
835 hwif->set_irq(hwif, 1); 835 hwif->set_irq(hwif, 1);