Skip to contentSkip to conversation

ahci: jmb361 has only one port

PATCH Applied Tejun Heo 2 participants 2 messages Jun 17, 2008 – Jun 19, 2008 libata

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 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.

Cc Gajo Petrovic <[email protected]>

---
Another hardware-specific workaround for #upstream-fixes.

 drivers/ata/ahci.c |    8 ++++++++
 1 file changed, 8 insertions(+)
drivers/ata/ahci.c +8 -0
index 966ab40..29f34d0 100644
@@ -653,6 +653,14 @@ static void ahci_save_initial_config(struct pci_dev *pdev,
 		cap &= ~HOST_CAP_PMP;
 	}
 
+	if (pdev->vendor == PCI_VENDOR_ID_JMICRON && pdev->device == 0x2361 &&
+	    port_map != 1) {
+		dev_printk(KERN_INFO, &pdev->dev,
+			   "JMB361 has only one port, port_map 0x%x -> 0x%x\n",
+			   port_map, 1);
+		port_map = 1;
+	}
+
 	/*
 	 * Temporary Marvell 6145 hack: PATA port presence
 	 * is asserted through the standard AHCI port
Applied
#1 lore raw
Quoted 5 lines · Tejun Heo

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.

Quoted 7 lines
Cc Gajo Petrovic <[email protected]>

---
Another hardware-specific workaround for #upstream-fixes.

 drivers/ata/ahci.c |    8 ++++++++
 1 file changed, 8 insertions(+)

applied