aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/ide-scsi.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c
index 2553ef4d5a91..e67cf8aa9462 100644
--- a/drivers/scsi/ide-scsi.c
+++ b/drivers/scsi/ide-scsi.c
@@ -388,7 +388,6 @@ static ide_startstop_t idescsi_pc_intr (ide_drive_t *drive)
388 return ide_stopped; 388 return ide_stopped;
389 } 389 }
390 if (pc->flags & PC_FLAG_DMA_IN_PROGRESS) { 390 if (pc->flags & PC_FLAG_DMA_IN_PROGRESS) {
391 pc->flags &= ~PC_FLAG_DMA_IN_PROGRESS;
392#if IDESCSI_DEBUG_LOG 391#if IDESCSI_DEBUG_LOG
393 printk ("ide-scsi: %s: DMA complete\n", drive->name); 392 printk ("ide-scsi: %s: DMA complete\n", drive->name);
394#endif /* IDESCSI_DEBUG_LOG */ 393#endif /* IDESCSI_DEBUG_LOG */
@@ -404,12 +403,20 @@ static ide_startstop_t idescsi_pc_intr (ide_drive_t *drive)
404 if (test_bit(IDESCSI_LOG_CMD, &scsi->log)) 403 if (test_bit(IDESCSI_LOG_CMD, &scsi->log))
405 printk(KERN_INFO "Packet command completed, %d bytes" 404 printk(KERN_INFO "Packet command completed, %d bytes"
406 " transferred\n", pc->xferred); 405 " transferred\n", pc->xferred);
406 pc->flags &= ~PC_FLAG_DMA_IN_PROGRESS;
407 local_irq_enable_in_hardirq(); 407 local_irq_enable_in_hardirq();
408 if (stat & ERR_STAT) 408 if (stat & ERR_STAT)
409 rq->errors++; 409 rq->errors++;
410 idescsi_end_request (drive, 1, 0); 410 idescsi_end_request (drive, 1, 0);
411 return ide_stopped; 411 return ide_stopped;
412 } 412 }
413 if (pc->flags & PC_FLAG_DMA_IN_PROGRESS) {
414 pc->flags &= ~PC_FLAG_DMA_IN_PROGRESS;
415 printk(KERN_ERR "%s: The device wants to issue more interrupts "
416 "in DMA mode\n", drive->name);
417 ide_dma_off(drive);
418 return ide_do_reset(drive);
419 }
413 bcount = (hwif->INB(hwif->io_ports.lbah_addr) << 8) | 420 bcount = (hwif->INB(hwif->io_ports.lbah_addr) << 8) |
414 hwif->INB(hwif->io_ports.lbam_addr); 421 hwif->INB(hwif->io_ports.lbam_addr);
415 ireason = hwif->INB(hwif->io_ports.nsect_addr); 422 ireason = hwif->INB(hwif->io_ports.nsect_addr);