aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@googlemail.com>2009-01-02 10:12:52 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-02 10:12:52 -0500
commit4f02ff06b4d33aba50ce5157c23e99cd21d447ee (patch)
tree1b163052d0fa6c03f7facfac7a320798e563d835 /drivers/ide
parented48554fad7091b9613b967462f082bf1a9cb035 (diff)
ide-atapi: setup dma for ide-cd
There should be no functional change resulting from this patch. Signed-off-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-atapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index b6e0aac68938..74273fdc8827 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -575,8 +575,9 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout,
575 ide_dma_off(drive); 575 ide_dma_off(drive);
576 } 576 }
577 577
578 if ((pc->flags & PC_FLAG_DMA_OK) && 578 if (((pc->flags & PC_FLAG_DMA_OK) &&
579 (drive->dev_flags & IDE_DFLAG_USING_DMA)) { 579 (drive->dev_flags & IDE_DFLAG_USING_DMA)) ||
580 drive->dma) {
580 if (scsi) 581 if (scsi)
581 hwif->sg_mapped = 1; 582 hwif->sg_mapped = 1;
582 drive->dma = !hwif->dma_ops->dma_setup(drive); 583 drive->dma = !hwif->dma_ops->dma_setup(drive);