aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/pdc202xx_new.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/pdc202xx_new.c')
-rw-r--r--drivers/ide/pci/pdc202xx_new.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c
index 772ca4007de4..65b1e124edf7 100644
--- a/drivers/ide/pci/pdc202xx_new.c
+++ b/drivers/ide/pci/pdc202xx_new.c
@@ -37,8 +37,6 @@
37#include <asm/pci-bridge.h> 37#include <asm/pci-bridge.h>
38#endif 38#endif
39 39
40#define PDC202_DEBUG_CABLE 0
41
42#undef DEBUG 40#undef DEBUG
43 41
44#ifdef DEBUG 42#ifdef DEBUG
@@ -234,17 +232,8 @@ static int config_chipset_for_dma(ide_drive_t *drive)
234{ 232{
235 struct hd_driveid *id = drive->id; 233 struct hd_driveid *id = drive->id;
236 ide_hwif_t *hwif = HWIF(drive); 234 ide_hwif_t *hwif = HWIF(drive);
237 u8 ultra_66 = (id->dma_ultra & 0x0078) ? 1 : 0;
238 u8 cable = pdcnew_cable_detect(hwif);
239 u8 speed; 235 u8 speed;
240 236
241 if (ultra_66 && cable) {
242 printk(KERN_WARNING "Warning: %s channel "
243 "requires an 80-pin cable for operation.\n",
244 hwif->channel ? "Secondary" : "Primary");
245 printk(KERN_WARNING "%s reduced to Ultra33 mode.\n", drive->name);
246 }
247
248 if (id->capability & 4) { 237 if (id->capability & 4) {
249 /* 238 /*
250 * Set IORDY_EN & PREFETCH_EN (this seems to have 239 * Set IORDY_EN & PREFETCH_EN (this seems to have
@@ -547,11 +536,6 @@ static void __devinit init_hwif_pdc202new(ide_hwif_t *hwif)
547 if (!noautodma) 536 if (!noautodma)
548 hwif->autodma = 1; 537 hwif->autodma = 1;
549 hwif->drives[0].autodma = hwif->drives[1].autodma = hwif->autodma; 538 hwif->drives[0].autodma = hwif->drives[1].autodma = hwif->autodma;
550
551#if PDC202_DEBUG_CABLE
552 printk(KERN_DEBUG "%s: %s-pin cable\n",
553 hwif->name, hwif->udma_four ? "80" : "40");
554#endif /* PDC202_DEBUG_CABLE */
555} 539}
556 540
557static int __devinit init_setup_pdcnew(struct pci_dev *dev, ide_pci_device_t *d) 541static int __devinit init_setup_pdcnew(struct pci_dev *dev, ide_pci_device_t *d)