Skip to content

Commit

Permalink
trm290: trm290_dma_setup() fix
Browse files Browse the repository at this point in the history
Re-map sg table if necessary (not that it really matters since
DMA support is disabled currently).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent f7ef124 commit e2bcb2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/ide/trm290.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e2bcb2a

Please sign in to comment.