summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Stevens <darren@stevens-zone.net>2017-01-23 20:38:28 +0100
committerTejun Heo <tj@kernel.org>2017-01-23 20:38:30 +0100
commit5946fdaee4ba449e8fbb5d403e1ed69437f916e8 (patch)
tree919046f322a34f0db8ffcd62ee609310c0d8c1be
parentlibata-sff: Don't scan disabled ports when checking for legacy mode. (diff)
downloadlinux-5946fdaee4ba449e8fbb5d403e1ed69437f916e8.tar.xz
linux-5946fdaee4ba449e8fbb5d403e1ed69437f916e8.zip
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' Signed-off-by: Darren Stevens <darren@stevens-zone.net> Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r--drivers/ata/pata_atiixp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c
index 49d705c9f0f7..6c9aa95a9a05 100644
--- a/drivers/ata/pata_atiixp.c
+++ b/drivers/ata/pata_atiixp.c
@@ -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);
}