mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
ed48554fad
commit
4f02ff06b4
|
@ -575,8 +575,9 @@ ide_startstop_t ide_issue_pc(ide_drive_t *drive, unsigned int timeout,
|
|||
ide_dma_off(drive);
|
||||
}
|
||||
|
||||
if ((pc->flags & PC_FLAG_DMA_OK) &&
|
||||
(drive->dev_flags & IDE_DFLAG_USING_DMA)) {
|
||||
if (((pc->flags & PC_FLAG_DMA_OK) &&
|
||||
(drive->dev_flags & IDE_DFLAG_USING_DMA)) ||
|
||||
drive->dma) {
|
||||
if (scsi)
|
||||
hwif->sg_mapped = 1;
|
||||
drive->dma = !hwif->dma_ops->dma_setup(drive);
|
||||
|
|
Loading…
Reference in New Issue