diff mbox

sata-fsl: Apply link speed limits

Message ID 20150219200547.GA25730@darwin.bork.org (mailing list archive)
State Not Applicable
Headers show

Commit Message

Martin Hicks Feb. 19, 2015, 8:05 p.m. UTC
The driver was ignoring limits requested by libata.force.  The output
would look like:

fsl-sata ffe18000.sata: Sata FSL Platform/CSB Driver init
ata1: FORCE: PHY spd limit set to 1.5Gbps
ata1: SATA max UDMA/133 irq 74
ata1: Signature Update detected @ 0 msecs
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 310)

Signed-off-by: Martin Hicks <mort@bork.org>
---
 drivers/ata/sata_fsl.c |    2 ++
 1 file changed, 2 insertions(+)

Comments

Tejun Heo March 2, 2015, 5:09 p.m. UTC | #1
On Thu, Feb 19, 2015 at 03:05:47PM -0500, Martin Hicks wrote:
> 
> 
> The driver was ignoring limits requested by libata.force.  The output
> would look like:
> 
> fsl-sata ffe18000.sata: Sata FSL Platform/CSB Driver init
> ata1: FORCE: PHY spd limit set to 1.5Gbps
> ata1: SATA max UDMA/133 irq 74
> ata1: Signature Update detected @ 0 msecs
> ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 310)
> 
> Signed-off-by: Martin Hicks <mort@bork.org>

Applied to libata/for-4.0-fixes.

Thanks.
diff mbox

Patch

diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c
index f9054cd..a9b5508 100644
--- a/drivers/ata/sata_fsl.c
+++ b/drivers/ata/sata_fsl.c
@@ -868,6 +868,8 @@  try_offline_again:
 	 * PHY reset should remain asserted for atleast 1ms
 	 */
 	ata_msleep(ap, 1);
+	
+	sata_set_spd(link);
 
 	/*
 	 * Now, bring the host controller online again, this can take time