From: Sergei Shtylyov Date: Fri, 17 Oct 2008 16:09:15 +0000 (+0200) Subject: ide: mask interrupt in ide_config_drive_speed() X-Git-Tag: v2.6.28-rc1~83^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e5403bff8a4018240f012fd4c7afa24c2e75b469;p=linux-2.6-omap-h63xx.git ide: mask interrupt in ide_config_drive_speed() Apparently, there is no sense in unmasking IRQ on the controller when you call disable_irq_nosync() before doing this, set the nIEN bit afterwards, and then unmask IRQ again after the command completion, hence 0 passed to SELECT_MASK() before issuing the command in ide_config_drive_speed() is probably just a typo. Signed-off-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index b762deb2dac..bb7a1ed8094 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c @@ -755,7 +755,7 @@ int ide_config_drive_speed(ide_drive_t *drive, u8 speed) udelay(1); SELECT_DRIVE(drive); - SELECT_MASK(drive, 0); + SELECT_MASK(drive, 1); udelay(1); tp_ops->set_irq(hwif, 0);