aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/sis5513.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/sis5513.c')
-rw-r--r--drivers/ide/pci/sis5513.c23
1 files changed, 4 insertions, 19 deletions
diff --git a/drivers/ide/pci/sis5513.c b/drivers/ide/pci/sis5513.c
index 3f35386d9cad..85d36996e6af 100644
--- a/drivers/ide/pci/sis5513.c
+++ b/drivers/ide/pci/sis5513.c
@@ -351,25 +351,10 @@ static void sis_program_udma_timings(ide_drive_t *drive, const u8 mode)
351 351
352static void sis_set_dma_mode(ide_drive_t *drive, const u8 speed) 352static void sis_set_dma_mode(ide_drive_t *drive, const u8 speed)
353{ 353{
354 /* Config chip for mode */ 354 if (speed >= XFER_UDMA_0)
355 switch(speed) { 355 sis_program_udma_timings(drive, speed);
356 case XFER_UDMA_6: 356 else
357 case XFER_UDMA_5: 357 sis_program_timings(drive, speed);
358 case XFER_UDMA_4:
359 case XFER_UDMA_3:
360 case XFER_UDMA_2:
361 case XFER_UDMA_1:
362 case XFER_UDMA_0:
363 sis_program_udma_timings(drive, speed);
364 break;
365 case XFER_MW_DMA_2:
366 case XFER_MW_DMA_1:
367 case XFER_MW_DMA_0:
368 sis_program_timings(drive, speed);
369 break;
370 default:
371 break;
372 }
373} 358}
374 359
375static u8 sis5513_ata133_udma_filter(ide_drive_t *drive) 360static u8 sis5513_ata133_udma_filter(ide_drive_t *drive)