Skip to contentSkip to conversation

AMD756 no host side cable detection

PATCH Rene Herman 1 participant 1 message Jan 19, 2006

lore
Share & tools
lore
#0 lore raw

Hi Bartlomiej.

I'm still applying this one:

http://marc.theaimsgroup.com/?l=linux-kernel&m=110304128900342&w=2

locally. Could you perhaps push it onwards?

Rene.

drivers/ide/pci/amd74xx.c +2 -6
Index: local/drivers/ide/pci/amd74xx.c
===================================================================
@@ -347,10 +347,8 @@ static unsigned int __devinit init_chips
 			break;
 
 		case AMD_UDMA_66:
-			pci_read_config_dword(dev, AMD_UDMA_TIMING, &u);
-			for (i = 24; i >= 0; i -= 8)
-				if ((u >> i) & 4)
-					amd_80w |= (1 << (1 - (i >> 4)));
+			/* no host side cable detection */
+			amd_80w = 0x03;
 			break;
 	}
 
@@ -386,8 +384,6 @@ static unsigned int __devinit init_chips
 	if (amd_clock < 20000 || amd_clock > 50000) {
 		printk(KERN_WARNING "%s: User given PCI clock speed impossible (%d), using 33 MHz instead.\n",
 			amd_chipset->name, amd_clock);
-		printk(KERN_WARNING "%s: Use ide0=ata66 if you want to assume 80-wire cable\n",
-			amd_chipset->name);
 		amd_clock = 33333;
 	}