提交 e7eac96e 编写于 作者: A ashish kalra 提交者: Jeff Garzik

ata/sata_fsl: Move MPC8315DS link speed limit workaround to specific ifdef

Signed-off-by: Nashish kalra <ashish.kalra@freescale.com>
Signed-off-by: NLi Yang <leoli@freescale.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 520d3a1a
...@@ -652,6 +652,7 @@ static int sata_fsl_port_start(struct ata_port *ap) ...@@ -652,6 +652,7 @@ static int sata_fsl_port_start(struct ata_port *ap)
VPRINTK("HControl = 0x%x\n", ioread32(hcr_base + HCONTROL)); VPRINTK("HControl = 0x%x\n", ioread32(hcr_base + HCONTROL));
VPRINTK("CHBA = 0x%x\n", ioread32(hcr_base + CHBA)); VPRINTK("CHBA = 0x%x\n", ioread32(hcr_base + CHBA));
#ifdef CONFIG_MPC8315_DS
/* /*
* Workaround for 8315DS board 3gbps link-up issue, * Workaround for 8315DS board 3gbps link-up issue,
* currently limit SATA port to GEN1 speed * currently limit SATA port to GEN1 speed
...@@ -664,6 +665,7 @@ static int sata_fsl_port_start(struct ata_port *ap) ...@@ -664,6 +665,7 @@ static int sata_fsl_port_start(struct ata_port *ap)
sata_fsl_scr_read(ap, SCR_CONTROL, &temp); sata_fsl_scr_read(ap, SCR_CONTROL, &temp);
dev_printk(KERN_WARNING, dev, "scr_control, speed limited to %x\n", dev_printk(KERN_WARNING, dev, "scr_control, speed limited to %x\n",
temp); temp);
#endif
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册