Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32848
b: refs/heads/master
c: 71ef51c
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Jul 28, 2006
1 parent 7b8edac commit 5a2ce1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a8348d08677ad77ee353f96eb8745c693a05a13
refs/heads/master: 71ef51cc1756d1c56b57c70e7cc27a3559c81ee6
11 changes: 8 additions & 3 deletions trunk/drivers/ide/pci/it821x.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,14 @@ static int config_chipset_for_dma (ide_drive_t *drive)
{
u8 speed = ide_dma_speed(drive, it821x_ratemask(drive));

config_it821x_chipset_for_pio(drive, !speed);
it821x_tune_chipset(drive, speed);
return ide_dma_enable(drive);
if (speed) {
config_it821x_chipset_for_pio(drive, 0);
it821x_tune_chipset(drive, speed);

return ide_dma_enable(drive);
}

return 0;
}

/**
Expand Down

0 comments on commit 5a2ce1b

Please sign in to comment.