Browse Source

ide: call clear_irq() method in ide_timer_expiry()

Now the clear_irq() method is called only from ide_intr() but ide_timer_expiry()
also should call this method in case when drive_is_ready() succeeds...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sergei Shtylyov 16 năm trước cách đây
mục cha
commit
53b987d5e7
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      drivers/ide/ide-io.c

+ 3 - 0
drivers/ide/ide-io.c

@@ -685,6 +685,9 @@ void ide_timer_expiry (unsigned long data)
 				hwif->dma_ops->dma_lost_irq(drive);
 				hwif->dma_ops->dma_lost_irq(drive);
 			if (hwif->ack_intr)
 			if (hwif->ack_intr)
 				hwif->ack_intr(hwif);
 				hwif->ack_intr(hwif);
+			if (hwif->port_ops && hwif->port_ops->clear_irq)
+				hwif->port_ops->clear_irq(drive);
+
 			printk(KERN_WARNING "%s: lost interrupt\n",
 			printk(KERN_WARNING "%s: lost interrupt\n",
 				drive->name);
 				drive->name);
 			startstop = handler(drive);
 			startstop = handler(drive);