aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-24 18:22:47 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-24 18:22:47 -0400
commitee1b1cc974816b59af2ba0be1912e1c2a200ae11 (patch)
tree0c5f3d9a2966c007c491db6776be5a1907312f71
parent4d7bb471ce0283f586817abea81254b67598aae6 (diff)
ide: fix comments in ide_config_drive_speed()
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--drivers/ide/ide-iops.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index aad0d52ff1e7..73ff16bf9f1c 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -369,18 +369,15 @@ int ide_config_drive_speed(ide_drive_t *drive, u8 speed)
369 * but for some reason these don't work at 369 * but for some reason these don't work at
370 * this point (lost interrupt). 370 * this point (lost interrupt).
371 */ 371 */
372 /* 372
373 * Select the drive, and issue the SETFEATURES command
374 */
375 disable_irq_nosync(hwif->irq);
376
377 /* 373 /*
378 * FIXME: we race against the running IRQ here if 374 * FIXME: we race against the running IRQ here if
379 * this is called from non IRQ context. If we use 375 * this is called from non IRQ context. If we use
380 * disable_irq() we hang on the error path. Work 376 * disable_irq() we hang on the error path. Work
381 * is needed. 377 * is needed.
382 */ 378 */
383 379 disable_irq_nosync(hwif->irq);
380
384 udelay(1); 381 udelay(1);
385 SELECT_DRIVE(drive); 382 SELECT_DRIVE(drive);
386 SELECT_MASK(drive, 1); 383 SELECT_MASK(drive, 1);