Skip to content

Commit

Permalink
ide: fix comments in ide_config_drive_speed()
Browse files Browse the repository at this point in the history
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent 4d7bb47 commit ee1b1cc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions drivers/ide/ide-iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ee1b1cc

Please sign in to comment.