ide: fix comments in ide_config_drive_speed()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 24 Mar 2009 22:22:47 +0000 (23:22 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 24 Mar 2009 22:22:47 +0000 (23:22 +0100)
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-iops.c

index aad0d52ff1e75d75279c3377b4ef2282fbe2be39..73ff16bf9f1cb2f71028a6775d88bef9077caf1f 100644 (file)
@@ -369,18 +369,15 @@ int ide_config_drive_speed(ide_drive_t *drive, u8 speed)
         * but for some reason these don't work at
         * this point (lost interrupt).
         */
-        /*
-         * Select the drive, and issue the SETFEATURES command
-         */
-       disable_irq_nosync(hwif->irq);
-       
+
        /*
         *      FIXME: we race against the running IRQ here if
         *      this is called from non IRQ context. If we use
         *      disable_irq() we hang on the error path. Work
         *      is needed.
         */
-        
+       disable_irq_nosync(hwif->irq);
+
        udelay(1);
        SELECT_DRIVE(drive);
        SELECT_MASK(drive, 1);