Skip to contentSkip to conversation

sata-fsl: Apply link speed limits

PATCH Applied Martin Hicks 2 participants 2 messages Feb 19, 2015 – Mar 2, 2015 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sata-fsl: Apply link speed limits

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)

---
 drivers/ata/sata_fsl.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/ata/sata_fsl.c +2 -0
index f9054cd..a9b5508 100644
@@ -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
Signature · 10 lines
1.7.10.4


-- 
Martin Hicks P.Eng.    |      [email protected]
Bork Consulting Inc.   |  +1 (613) 266-2296
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev
Applied
#1 lore raw
Quoted 5 lines · Martin Hicks

The driver was ignoring limits requested by libata.force. The output would look like:

Quoted 7 lines

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)

Applied to libata/for-4.0-fixes.

Thanks.

Signature · 1 line
tejun