diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-15 15:21:54 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-15 15:21:54 -0400 |
commit | 531e9e50543ebf562237b8ac64529ae09b344a43 (patch) | |
tree | 75b64cf2b0a4b85878c39ffc860de433ed655e2b /drivers | |
parent | 91395a16309596c2e78439aa5f9f6004f0365ef9 (diff) |
ide-tape: remove stale comments from idetape_pc_intr()
Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-tape.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index b8cc0d5cde0e..41aa8b3ccab3 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -758,27 +758,6 @@ static ide_startstop_t idetape_pc_intr(ide_drive_t *drive) | |||
758 | 758 | ||
759 | if (pc->flags & PC_FLAG_DMA_IN_PROGRESS) { | 759 | if (pc->flags & PC_FLAG_DMA_IN_PROGRESS) { |
760 | if (hwif->dma_ops->dma_end(drive) || (stat & ERR_STAT)) { | 760 | if (hwif->dma_ops->dma_end(drive) || (stat & ERR_STAT)) { |
761 | /* | ||
762 | * A DMA error is sometimes expected. For example, | ||
763 | * if the tape is crossing a filemark during a | ||
764 | * READ command, it will issue an irq and position | ||
765 | * itself before the filemark, so that only a partial | ||
766 | * data transfer will occur (which causes the DMA | ||
767 | * error). In that case, we will later ask the tape | ||
768 | * how much bytes of the original request were | ||
769 | * actually transferred (we can't receive that | ||
770 | * information from the DMA engine on most chipsets). | ||
771 | */ | ||
772 | |||
773 | /* | ||
774 | * On the contrary, a DMA error is never expected; | ||
775 | * it usually indicates a hardware error or abort. | ||
776 | * If the tape crosses a filemark during a READ | ||
777 | * command, it will issue an irq and position itself | ||
778 | * after the filemark (not before). Only a partial | ||
779 | * data transfer will occur, but no DMA error. | ||
780 | * (AS, 19 Apr 2001) | ||
781 | */ | ||
782 | pc->flags |= PC_FLAG_DMA_ERROR; | 761 | pc->flags |= PC_FLAG_DMA_ERROR; |
783 | } else { | 762 | } else { |
784 | pc->xferred = pc->req_xfer; | 763 | pc->xferred = pc->req_xfer; |