Skip to contentSkip to conversation

libata:pata_atiixp: Don't use unconnected secondary port on SB600/SB700

PATCH Applied Darren Stevens 2 participants 2 messages Jan 22, 2017 – Jan 23, 2017 libata

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libata:pata_atiixp: Don't use unconnected secondary port on SB600/SB700

The SB600 and SB700 southbridge chips from ATI/AMD only have connections for the primary IDE port. As these chips have unique pci device ID's use these to mark the secondary port as 'dummy'

---

v2: Moved comment to a more sensible place. No functional changes.

drivers/ata/pata_atiixp.c +5 -0
index 49d705c..83c158b 100644
@@ -278,6 +278,11 @@ static int atiixp_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
 	};
 	const struct ata_port_info *ppi[] = { &info, &info };
 
+	/* SB600/700 don't have secondary port wired */
+	if ((pdev->device == PCI_DEVICE_ID_ATI_IXP600_IDE) ||
+		(pdev->device == PCI_DEVICE_ID_ATI_IXP700_IDE))
+		ppi[1] = &ata_dummy_port_info;
+
 	return ata_pci_bmdma_init_one(pdev, ppi, &atiixp_sht, NULL,
 				      ATA_HOST_PARALLEL_SCAN);
 }
Applied
#1 lore raw
Quoted 5 lines · Darren Stevens

The SB600 and SB700 southbridge chips from ATI/AMD only have connections for the primary IDE port. As these chips have unique pci device ID's use these to mark the secondary port as 'dummy'

Applied to libata/for-4.11.

Thanks.

Signature · 1 line
tejun