aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_fsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_fsl.c')
-rw-r--r--drivers/ata/sata_fsl.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c
index fb0b40a191c2..616a6d2ac20c 100644
--- a/drivers/ata/sata_fsl.c
+++ b/drivers/ata/sata_fsl.c
@@ -774,20 +774,6 @@ static int sata_fsl_port_start(struct ata_port *ap)
774 VPRINTK("HControl = 0x%x\n", ioread32(hcr_base + HCONTROL)); 774 VPRINTK("HControl = 0x%x\n", ioread32(hcr_base + HCONTROL));
775 VPRINTK("CHBA = 0x%x\n", ioread32(hcr_base + CHBA)); 775 VPRINTK("CHBA = 0x%x\n", ioread32(hcr_base + CHBA));
776 776
777#ifdef CONFIG_MPC8315_DS
778 /*
779 * Workaround for 8315DS board 3gbps link-up issue,
780 * currently limit SATA port to GEN1 speed
781 */
782 sata_fsl_scr_read(&ap->link, SCR_CONTROL, &temp);
783 temp &= ~(0xF << 4);
784 temp |= (0x1 << 4);
785 sata_fsl_scr_write(&ap->link, SCR_CONTROL, temp);
786
787 sata_fsl_scr_read(&ap->link, SCR_CONTROL, &temp);
788 dev_warn(dev, "scr_control, speed limited to %x\n", temp);
789#endif
790
791 return 0; 777 return 0;
792} 778}
793 779
@@ -1588,7 +1574,7 @@ static int sata_fsl_remove(struct platform_device *ofdev)
1588 return 0; 1574 return 0;
1589} 1575}
1590 1576
1591#ifdef CONFIG_PM 1577#ifdef CONFIG_PM_SLEEP
1592static int sata_fsl_suspend(struct platform_device *op, pm_message_t state) 1578static int sata_fsl_suspend(struct platform_device *op, pm_message_t state)
1593{ 1579{
1594 struct ata_host *host = platform_get_drvdata(op); 1580 struct ata_host *host = platform_get_drvdata(op);
@@ -1644,7 +1630,7 @@ static struct platform_driver fsl_sata_driver = {
1644 }, 1630 },
1645 .probe = sata_fsl_probe, 1631 .probe = sata_fsl_probe,
1646 .remove = sata_fsl_remove, 1632 .remove = sata_fsl_remove,
1647#ifdef CONFIG_PM 1633#ifdef CONFIG_PM_SLEEP
1648 .suspend = sata_fsl_suspend, 1634 .suspend = sata_fsl_suspend,
1649 .resume = sata_fsl_resume, 1635 .resume = sata_fsl_resume,
1650#endif 1636#endif