Skip to contentSkip to conversation

PATCH: AMD pata fixes

PATCH Alan Cox 2 participants 2 messages Nov 19, 2005 SCSI

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

I managed to send you the pata file versions before I did the last fix (forgot to rsync them back off a build box). This corrects the obvious problem for the AMD driver and fixes drive detection.

drivers/scsi/pata_amd.c +2 -2
diff -u --exclude-from /usr/src/exclude --new-file --recursive linux.vanilla-2.6.14-mm2/drivers/scsi/pata_amd.c linux-2.6.14-mm2/drivers/scsi/pata_amd.c
@@ -148,8 +148,8 @@
 {
 	struct pci_dev *pdev = to_pci_dev(ap->host_set->dev);
 	static struct pci_bits amd_enable_bits[] = {
-		{ 0x40, 0x02, 0x02 },
-		{ 0x40, 0x01, 0x01 }
+		{ 0x40, 1, 0x02, 0x02 },
+		{ 0x40, 1, 0x01, 0x01 }
 	};
 
 	if (!pci_test_config_bits(pdev, &amd_enable_bits[ap->hard_port_no])) {