aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-06-16 23:46:30 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-06-18 20:27:45 -0400
commitd799e083a80b220f3681d7790f11e77d1704022b (patch)
tree0ad0617602584cf31dbba04ea6d3ede8e992e310 /drivers/ata/ahci.c
parentf9d1c6ca2bb1bbfde4a95d9e55ab3b0126825295 (diff)
ahci: jmb361 has only one port
JMB361 has only one port but reports it has two causing longish probe failure on the second one. Quirk it. Reported by Gajo Petrovic in bz 10911. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Gajo Petrovic <gajo01@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r--drivers/ata/ahci.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 966ab401e523..29f34d03bd75 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -653,6 +653,14 @@ static void ahci_save_initial_config(struct pci_dev *pdev,
653 cap &= ~HOST_CAP_PMP; 653 cap &= ~HOST_CAP_PMP;
654 } 654 }
655 655
656 if (pdev->vendor == PCI_VENDOR_ID_JMICRON && pdev->device == 0x2361 &&
657 port_map != 1) {
658 dev_printk(KERN_INFO, &pdev->dev,
659 "JMB361 has only one port, port_map 0x%x -> 0x%x\n",
660 port_map, 1);
661 port_map = 1;
662 }
663
656 /* 664 /*
657 * Temporary Marvell 6145 hack: PATA port presence 665 * Temporary Marvell 6145 hack: PATA port presence
658 * is asserted through the standard AHCI port 666 * is asserted through the standard AHCI port