Re: Marvell 6121 SATA support?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El Martes, 11 de Marzo de 2008, Jeff Garzik escribió:
> Mourad De Clerck wrote:
> > Hello,
> >
> > I was wondering what the status was of Marvell 6121 SATA support. I've
> > seen earlier messages saying it was pretty much working with the AHCI
> > driver, and that it would be merged in mainline soon, but that was in
> > 2.6.22 times.
> >
> > I've not seen support for it in 2.6.25-rc5's ahci, so I guess I
> > shouldn't expect it in 2.6.25?
>
> I would just add the PCI ID to ahci.c, it should most likely work...
>
> 	Jeff
>
>
>

 I use this patch for kernels 2.6.25-rc

Jose Alberto
diff -ur linux-2.6.25-rc3/drivers/ata/ahci.c linux-2.6.25-rc3.new/drivers/ata/ahci.c
--- linux-2.6.25-rc3/drivers/ata/ahci.c	2008-02-24 22:25:54.000000000 +0100
+++ linux-2.6.25-rc3.new/drivers/ata/ahci.c	2008-02-25 00:59:43.000000000 +0100
@@ -570,7 +570,7 @@
 	{ PCI_VDEVICE(SI, 0x0186), board_ahci }, /* SiS 968 */
 
 	/* Marvell */
-	{ PCI_VDEVICE(MARVELL, 0x6145), board_ahci_mv },	/* 6145 */
+	{ PCI_VDEVICE(MARVELL, 0x6121), board_ahci_mv },	/* 6121 */
 
 	/* Generic, PCI class code for AHCI */
 	{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
@@ -682,10 +682,10 @@
 	if (hpriv->flags & AHCI_HFLAG_MV_PATA) {
 		dev_printk(KERN_ERR, &pdev->dev,
 			   "MV_AHCI HACK: port_map %x -> %x\n",
-			   hpriv->port_map,
-			   hpriv->port_map & 0xf);
+			   port_map,
+			   port_map & 0x3);
 
-		port_map &= 0xf;
+		port_map &= 0x3;
 	}
 
 	/* cross check port_map and cap.n_ports */
@@ -1148,7 +1148,7 @@
 	u32 tmp;
 
 	if (hpriv->flags & AHCI_HFLAG_MV_PATA) {
-		port_mmio = __ahci_port_base(host, 4);
+		port_mmio = __ahci_port_base(host, 2);
 
 		writel(0, port_mmio + PORT_IRQ_MASK);
 

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux