SOURCES: linux-2.6.14-ahci-JMB360.patch (NEW) - support for JMicro...

charles charles at pld-linux.org
Sun Feb 5 02:54:17 CET 2006


Author: charles                      Date: Sun Feb  5 01:54:17 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- support for JMicron JMB360 - SATA2

---- Files affected:
SOURCES:
   linux-2.6.14-ahci-JMB360.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/linux-2.6.14-ahci-JMB360.patch
diff -u /dev/null SOURCES/linux-2.6.14-ahci-JMB360.patch:1.1
--- /dev/null	Sun Feb  5 02:54:17 2006
+++ SOURCES/linux-2.6.14-ahci-JMB360.patch	Sun Feb  5 02:54:12 2006
@@ -0,0 +1,47 @@
+--- linux-2.6.14.7/drivers/scsi/ahci.c.orig	2006-01-31 07:52:07.000000000 +0100
++++ linux-2.6.14.7/drivers/scsi/ahci.c	2006-02-04 23:20:29.000000000 +0100
+@@ -277,6 +277,8 @@
+ 	  board_ahci }, /* ESB2 */
+ 	{ PCI_VENDOR_ID_INTEL, 0x27c6, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
+ 	  board_ahci }, /* ICH7-M DH */
++	{ 0x197b, 0x2360, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
++	  board_ahci }, /* JMicron JMB360 */
+ 	{ }	/* terminate list */
+ };
+ 
+@@ -727,7 +729,6 @@
+ 	struct pci_dev *pdev = to_pci_dev(probe_ent->dev);
+ 	void __iomem *mmio = probe_ent->mmio_base;
+ 	u32 tmp, cap_save;
+-	u16 tmp16;
+ 	unsigned int i, j, using_dac;
+ 	int rc;
+ 	void __iomem *port_mmio;
+@@ -761,9 +762,13 @@
+ 	writel(0xf, mmio + HOST_PORTS_IMPL);
+ 	(void) readl(mmio + HOST_PORTS_IMPL);	/* flush */
+ 
+-	pci_read_config_word(pdev, 0x92, &tmp16);
+-	tmp16 |= 0xf;
+-	pci_write_config_word(pdev, 0x92, tmp16);
++	if (pdev->vendor == PCI_VENDOR_ID_INTEL) {
++		u16 tmp16;
++
++		pci_read_config_word(pdev, 0x92, &tmp16);
++		tmp16 |= 0xf;
++		pci_write_config_word(pdev, 0x92, tmp16);
++	}
+ 
+ 	hpriv->cap = readl(mmio + HOST_CAP);
+ 	hpriv->port_map = readl(mmio + HOST_PORTS_IMPL);
+@@ -1007,6 +1012,10 @@
+ 	if (have_msi)
+ 		hpriv->flags |= AHCI_FLAG_MSI;
+ 
++	/* JMicron-specific fixup: make sure we're in AHCI mode */
++	if (pdev->vendor == 0x197b)
++		pci_write_config_byte(pdev, 0x41, 0xa1);
++
+ 	/* initialize adapter */
+ 	rc = ahci_host_init(probe_ent);
+ 	if (rc)
================================================================


More information about the pld-cvs-commit mailing list