aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/hpt366.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/hpt366.c')
-rw-r--r--drivers/ide/pci/hpt366.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c
index 3d8d6b2ee41a..18c8ad091eb3 100644
--- a/drivers/ide/pci/hpt366.c
+++ b/drivers/ide/pci/hpt366.c
@@ -610,10 +610,6 @@ static int hpt36x_tune_chipset(ide_drive_t *drive, u8 xferspeed)
610 u32 old_itr = 0; 610 u32 old_itr = 0;
611 u32 itr_mask, new_itr; 611 u32 itr_mask, new_itr;
612 612
613 /* TODO: move this to ide_rate_filter() [ check ->atapi_dma ] */
614 if (drive->media != ide_disk)
615 speed = min_t(u8, speed, XFER_PIO_4);
616
617 itr_mask = speed < XFER_MW_DMA_0 ? 0x30070000 : 613 itr_mask = speed < XFER_MW_DMA_0 ? 0x30070000 :
618 (speed < XFER_UDMA_0 ? 0xc0070000 : 0xc03800ff); 614 (speed < XFER_UDMA_0 ? 0xc0070000 : 0xc03800ff);
619 615
@@ -642,10 +638,6 @@ static int hpt37x_tune_chipset(ide_drive_t *drive, u8 xferspeed)
642 u32 old_itr = 0; 638 u32 old_itr = 0;
643 u32 itr_mask, new_itr; 639 u32 itr_mask, new_itr;
644 640
645 /* TODO: move this to ide_rate_filter() [ check ->atapi_dma ] */
646 if (drive->media != ide_disk)
647 speed = min_t(u8, speed, XFER_PIO_4);
648
649 itr_mask = speed < XFER_MW_DMA_0 ? 0x303c0000 : 641 itr_mask = speed < XFER_MW_DMA_0 ? 0x303c0000 :
650 (speed < XFER_UDMA_0 ? 0xc03c0000 : 0xc1c001ff); 642 (speed < XFER_UDMA_0 ? 0xc03c0000 : 0xc1c001ff);
651 643