Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f02ff06 authored by Borislav Petkov's avatar Borislav Petkov Committed by Bartlomiej Zolnierkiewicz
Browse files

ide-atapi: setup dma for ide-cd



There should be no functional change resulting from this patch.

Signed-off-by: default avatarBorislav Petkov <petkovbb@gmail.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent ed48554f
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -575,8 +575,9 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout,
		ide_dma_off(drive);
		ide_dma_off(drive);
	}
	}


	if ((pc->flags & PC_FLAG_DMA_OK) &&
	if (((pc->flags & PC_FLAG_DMA_OK) &&
	    (drive->dev_flags & IDE_DFLAG_USING_DMA)) {
		(drive->dev_flags & IDE_DFLAG_USING_DMA)) ||
	    drive->dma) {
		if (scsi)
		if (scsi)
			hwif->sg_mapped = 1;
			hwif->sg_mapped = 1;
		drive->dma = !hwif->dma_ops->dma_setup(drive);
		drive->dma = !hwif->dma_ops->dma_setup(drive);