aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBorislav Petkov <bbpetkov@yahoo.de>2008-02-02 13:56:35 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-02 13:56:35 -0500
commitd30a7fba4380901b6a33fd798a0d0f9794a70ccc (patch)
tree57e5d39e1664433514ff8ce52b7f553531aaccb9 /drivers/ide
parent20bf7bdad443d473826832674230834654b31d0b (diff)
ide-floppy: report DMA handling in idefloppy_pc_intr() properly
Bart: - use 'hwif' instead of 'HWIF(drive)' - minor CodingStyle fixup Signed-off-by: Borislav Petkov <bbpetkov@yahoo.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-floppy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index af4b633fa3d1..5c32d0cda4ac 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -532,13 +532,17 @@ static ide_startstop_t idefloppy_pc_intr (ide_drive_t *drive)
532 idefloppy_pc_t *pc = floppy->pc; 532 idefloppy_pc_t *pc = floppy->pc;
533 struct request *rq = pc->rq; 533 struct request *rq = pc->rq;
534 unsigned int temp; 534 unsigned int temp;
535 int dma_error = 0;
535 u16 bcount; 536 u16 bcount;
536 u8 stat, ireason; 537 u8 stat, ireason;
537 538
538 debug_log("Reached %s interrupt handler\n", __func__); 539 debug_log("Reached %s interrupt handler\n", __func__);
539 540
540 if (test_bit(PC_DMA_IN_PROGRESS, &pc->flags)) { 541 if (test_bit(PC_DMA_IN_PROGRESS, &pc->flags)) {
541 if (HWIF(drive)->ide_dma_end(drive)) { 542 dma_error = hwif->ide_dma_end(drive);
543 if (dma_error) {
544 printk(KERN_ERR "%s: DMA %s error\n", drive->name,
545 rq_data_dir(rq) ? "write" : "read");
542 set_bit(PC_DMA_ERROR, &pc->flags); 546 set_bit(PC_DMA_ERROR, &pc->flags);
543 } else { 547 } else {
544 pc->actually_transferred = pc->request_transfer; 548 pc->actually_transferred = pc->request_transfer;