]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ahci: wait longer for link.
authorIan Campbell <ijc@hellion.org.uk>
Fri, 7 Mar 2014 01:20:58 +0000 (01:20 +0000)
committerTom Rini <trini@ti.com>
Mon, 10 Mar 2014 17:50:31 +0000 (13:50 -0400)
I have observed timeouts on a cubietruck.

The increase to 40ms is completely arbitrary and Works For Me(tm). I
couldn't find a good reference for how long you are supposed to wait,
although googling around it seems like tens of ms rather than single
digits is more common. I don't think there is any harm in waiting a bit
longer.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
drivers/block/ahci.c

index 22621bfb77dbb25ca227219e1d7f57ce968a0520..a409f63770473e5c3a83039d42e67ed5640a2363 100644 (file)
@@ -41,7 +41,7 @@ u16 *ataid[AHCI_MAX_PORTS];
 #define WAIT_MS_SPINUP 20000
 #define WAIT_MS_DATAIO 5000
 #define WAIT_MS_FLUSH  5000
-#define WAIT_MS_LINKUP 4
+#define WAIT_MS_LINKUP 40
 
 static inline u32 ahci_port_base(u32 base, u32 port)
 {