Skip to content

Commit

Permalink
ide: re-add TRM290 fix lost during ide_build_dmatable() cleanup
Browse files Browse the repository at this point in the history
commit 14c123f ("ide: cleanup
ide_build_dmatable()") accidentally reverted TRM290 fix introduced
by commit 22e05b4 ("ide-dma: fix
ide_build_dmatable() for TRM290").

Reported-by: Sergei Shtylylov <[email protected]>
Acked-by: Sergei Shtylylov <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
  • Loading branch information
bzolnier committed Oct 17, 2008
1 parent a11e2af commit 769b49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide-dma-sff.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ int ide_build_dmatable(ide_drive_t *drive, struct request *rq)
xcount = bcount & 0xffff;
if (is_trm290)
xcount = ((xcount >> 2) - 1) << 16;
if (xcount == 0x0000) {
else if (xcount == 0x0000) {
if (count++ >= PRD_ENTRIES)
goto use_pio_instead;
*table++ = cpu_to_le32(0x8000);
Expand Down

0 comments on commit 769b49c

Please sign in to comment.