diff options
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r-- | drivers/ide/ide-tape.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index ce9b6d327528..e8a5852fa2d4 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -1050,7 +1050,7 @@ static ide_startstop_t idetape_issue_pc(ide_drive_t *drive, | |||
1050 | pc->flags &= ~PC_FLAG_DMA_ERROR; | 1050 | pc->flags &= ~PC_FLAG_DMA_ERROR; |
1051 | ide_dma_off(drive); | 1051 | ide_dma_off(drive); |
1052 | } | 1052 | } |
1053 | if ((pc->flags & PC_FLAG_DMA_RECOMMENDED) && drive->using_dma) | 1053 | if ((pc->flags & PC_FLAG_DMA_OK) && drive->using_dma) |
1054 | dma_ok = !hwif->dma_ops->dma_setup(drive); | 1054 | dma_ok = !hwif->dma_ops->dma_setup(drive); |
1055 | 1055 | ||
1056 | ide_pktcmd_tf_load(drive, IDE_TFLAG_OUT_DEVICE, bcount, dma_ok); | 1056 | ide_pktcmd_tf_load(drive, IDE_TFLAG_OUT_DEVICE, bcount, dma_ok); |
@@ -1138,7 +1138,7 @@ static void idetape_create_read_cmd(idetape_tape_t *tape, | |||
1138 | pc->buf_size = length * tape->blk_size; | 1138 | pc->buf_size = length * tape->blk_size; |
1139 | pc->req_xfer = pc->buf_size; | 1139 | pc->req_xfer = pc->buf_size; |
1140 | if (pc->req_xfer == tape->buffer_size) | 1140 | if (pc->req_xfer == tape->buffer_size) |
1141 | pc->flags |= PC_FLAG_DMA_RECOMMENDED; | 1141 | pc->flags |= PC_FLAG_DMA_OK; |
1142 | } | 1142 | } |
1143 | 1143 | ||
1144 | static void idetape_create_write_cmd(idetape_tape_t *tape, | 1144 | static void idetape_create_write_cmd(idetape_tape_t *tape, |
@@ -1157,7 +1157,7 @@ static void idetape_create_write_cmd(idetape_tape_t *tape, | |||
1157 | pc->buf_size = length * tape->blk_size; | 1157 | pc->buf_size = length * tape->blk_size; |
1158 | pc->req_xfer = pc->buf_size; | 1158 | pc->req_xfer = pc->buf_size; |
1159 | if (pc->req_xfer == tape->buffer_size) | 1159 | if (pc->req_xfer == tape->buffer_size) |
1160 | pc->flags |= PC_FLAG_DMA_RECOMMENDED; | 1160 | pc->flags |= PC_FLAG_DMA_OK; |
1161 | } | 1161 | } |
1162 | 1162 | ||
1163 | static ide_startstop_t idetape_do_request(ide_drive_t *drive, | 1163 | static ide_startstop_t idetape_do_request(ide_drive_t *drive, |