lkml.org 
[lkml]   [2008]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 4/6] ide-atapi: setup dma for ide-cd
    Date
    From
    There should be no functional change resulting from this patch.

    Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
    ---
    drivers/ide/ide-atapi.c | 5 +++--
    1 files changed, 3 insertions(+), 2 deletions(-)

    diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
    index 7162317..8884877 100644
    --- a/drivers/ide/ide-atapi.c
    +++ b/drivers/ide/ide-atapi.c
    @@ -588,8 +588,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);
    --
    1.6.0.4


    \
     
     \ /
      Last update: 2008-12-04 07:47    [W:3.043 / U:0.744 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site