diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-16 16:29:54 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-16 16:29:54 -0400 |
commit | 65c9cd23cab821c165a70ddd0447eb6362ebbb0c (patch) | |
tree | 86f7c8d025cd774ed043e0cfeb8a681a38ab0c6d /drivers/ide/pci/cs5535.c | |
parent | d3b90baf0924c13045c56c3d0a766f9374fe7a9e (diff) |
ide: remove ide_use_fast_pio()
Remove ide_use_fast_pio() and just re-tune PIO unconditionally if DMA tuning
has failed in ->ide_dma_check. All host drivers using ide_use_fast_pio() set
drive->autotune so PIO is always tuned anyway and in some cases we _really_
need to re-tune PIO because PIO and DMA timings are shared.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/cs5535.c')
-rw-r--r-- | drivers/ide/pci/cs5535.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/pci/cs5535.c b/drivers/ide/pci/cs5535.c index 896cc9211bd3..2a72b4f22ddf 100644 --- a/drivers/ide/pci/cs5535.c +++ b/drivers/ide/pci/cs5535.c | |||
@@ -162,8 +162,7 @@ static int cs5535_dma_check(ide_drive_t *drive) | |||
162 | if (ide_tune_dma(drive)) | 162 | if (ide_tune_dma(drive)) |
163 | return 0; | 163 | return 0; |
164 | 164 | ||
165 | if (ide_use_fast_pio(drive)) | 165 | ide_set_max_pio(drive); |
166 | ide_set_max_pio(drive); | ||
167 | 166 | ||
168 | return -1; | 167 | return -1; |
169 | } | 168 | } |