From: Bartlomiej Zolnierkiewicz Date: Fri, 27 Mar 2009 11:46:32 +0000 (+0100) Subject: trm290: trm290_dma_setup() fix X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~12659^2~38 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e2bcb2acb0b076fd0e3388ed0139eb6447fa9ae9;p=mirror_ubuntu-zesty-kernel.git trm290: trm290_dma_setup() fix Re-map sg table if necessary (not that it really matters since DMA support is disabled currently). Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/trm290.c b/drivers/ide/trm290.c index 1c09e549c423..e8279f32f9a2 100644 --- a/drivers/ide/trm290.c +++ b/drivers/ide/trm290.c @@ -198,6 +198,7 @@ static int trm290_dma_setup(ide_drive_t *drive) rw = 2; if (!(count = ide_build_dmatable(drive, rq))) { + ide_map_sg(drive, rq); /* try PIO instead of DMA */ trm290_prepare_drive(drive, 0); /* select PIO xfer */ return 1;