mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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 <bzolnier@gmail.com>
This commit is contained in:
parent
f7ef12482b
commit
e2bcb2acb0
1 changed files with 1 additions and 0 deletions
|
@ -198,6 +198,7 @@ static int trm290_dma_setup(ide_drive_t *drive)
|
||||||
rw = 2;
|
rw = 2;
|
||||||
|
|
||||||
if (!(count = ide_build_dmatable(drive, rq))) {
|
if (!(count = ide_build_dmatable(drive, rq))) {
|
||||||
|
ide_map_sg(drive, rq);
|
||||||
/* try PIO instead of DMA */
|
/* try PIO instead of DMA */
|
||||||
trm290_prepare_drive(drive, 0); /* select PIO xfer */
|
trm290_prepare_drive(drive, 0); /* select PIO xfer */
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue