]> err.no Git - linux-2.6/commitdiff
ide: change order of register access in ide_config_drive_speed()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:55:52 +0000 (19:55 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:55:52 +0000 (19:55 +0200)
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>
drivers/ide/ide-iops.c

index 41ec53f329faba0510d923f31a9c2ef4a284f253..0a3a5068f04b7998f0182725ab4e1984d0ef16b9 100644 (file)
@@ -828,8 +828,8 @@ int ide_config_drive_speed(ide_drive_t *drive, u8 speed)
        SELECT_MASK(drive, 0);
        udelay(1);
        hwif->set_irq(hwif, 0);
-       hwif->OUTB(speed, io_ports->nsect_addr);
        hwif->OUTB(SETFEATURES_XFER, io_ports->feature_addr);
+       hwif->OUTB(speed, io_ports->nsect_addr);
        hwif->exec_command(hwif, WIN_SETFEATURES);
        if (drive->quirk_list == 2)
                hwif->set_irq(hwif, 1);