From: Bartlomiej Zolnierkiewicz Date: Tue, 24 Mar 2009 22:22:47 +0000 (+0100) Subject: ide: fix comments in ide_config_drive_speed() X-Git-Tag: v2.6.30-rc1~672^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee1b1cc974816b59af2ba0be1912e1c2a200ae11;p=platform%2Fkernel%2Flinux-stable.git ide: fix comments in ide_config_drive_speed() Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index aad0d52..73ff16b 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) * 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);