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: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent f7ef1248
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment