diff options
Diffstat (limited to 'drivers/ide/pci')
-rw-r--r-- | drivers/ide/pci/amd74xx.c | 2 | ||||
-rw-r--r-- | drivers/ide/pci/via82cxxx.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ide/pci/amd74xx.c b/drivers/ide/pci/amd74xx.c index 06c15a6a3e7d..3c0bb1e79514 100644 --- a/drivers/ide/pci/amd74xx.c +++ b/drivers/ide/pci/amd74xx.c | |||
@@ -240,6 +240,8 @@ static int amd_set_drive(ide_drive_t *drive, u8 speed) | |||
240 | struct ide_timing t, p; | 240 | struct ide_timing t, p; |
241 | int T, UT; | 241 | int T, UT; |
242 | 242 | ||
243 | speed = ide_rate_filter(drive, speed); | ||
244 | |||
243 | if (speed != XFER_PIO_SLOW) | 245 | if (speed != XFER_PIO_SLOW) |
244 | ide_config_drive_speed(drive, speed); | 246 | ide_config_drive_speed(drive, speed); |
245 | 247 | ||
diff --git a/drivers/ide/pci/via82cxxx.c b/drivers/ide/pci/via82cxxx.c index a7be7795e6af..ec9ad6e0e1f6 100644 --- a/drivers/ide/pci/via82cxxx.c +++ b/drivers/ide/pci/via82cxxx.c | |||
@@ -165,6 +165,8 @@ static int via_set_drive(ide_drive_t *drive, u8 speed) | |||
165 | struct ide_timing t, p; | 165 | struct ide_timing t, p; |
166 | unsigned int T, UT; | 166 | unsigned int T, UT; |
167 | 167 | ||
168 | speed = ide_rate_filter(drive, speed); | ||
169 | |||
168 | if (speed != XFER_PIO_SLOW) | 170 | if (speed != XFER_PIO_SLOW) |
169 | ide_config_drive_speed(drive, speed); | 171 | ide_config_drive_speed(drive, speed); |
170 | 172 | ||