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/ide-lib.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/ide-lib.c')
-rw-r--r-- | drivers/ide/ide-lib.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c index 0e2562f0f74e..af86433baede 100644 --- a/drivers/ide/ide-lib.c +++ b/drivers/ide/ide-lib.c | |||
@@ -96,21 +96,6 @@ static u8 ide_rate_filter(ide_drive_t *drive, u8 speed) | |||
96 | return min(speed, mode); | 96 | return min(speed, mode); |
97 | } | 97 | } |
98 | 98 | ||
99 | int ide_use_fast_pio(ide_drive_t *drive) | ||
100 | { | ||
101 | struct hd_driveid *id = drive->id; | ||
102 | |||
103 | if ((id->capability & 1) && drive->autodma) | ||
104 | return 1; | ||
105 | |||
106 | if ((id->capability & 8) || (id->field_valid & 2)) | ||
107 | return 1; | ||
108 | |||
109 | return 0; | ||
110 | } | ||
111 | |||
112 | EXPORT_SYMBOL_GPL(ide_use_fast_pio); | ||
113 | |||
114 | /* | 99 | /* |
115 | * Standard (generic) timings for PIO modes, from ATA2 specification. | 100 | * Standard (generic) timings for PIO modes, from ATA2 specification. |
116 | * These timings are for access to the IDE data port register *only*. | 101 | * These timings are for access to the IDE data port register *only*. |