]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ahci: extend data io wait to 10s
authorMark Langsdorf <mark.langsdorf@gmail.com>
Thu, 4 Jun 2015 23:58:46 +0000 (00:58 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jun 2015 20:53:04 +0000 (16:53 -0400)
The AHCI driver currently waits 5s before timing out when sending a
data command to a drive. Some drives take upwards of 8s to respond to
the initial data command while they're spinning up. Increase the
data io timeout to 10s so that those drives can be found on initial
scsi scan.

Signed-off-by: Mark Langsdorf <mark.langsdorf@gmail.com>
Signed-off-by: Andre Przywara <osp@andrep.de>
drivers/block/ahci.c

index fe667a07697f96c62c1be3e97ea9a87aba93718e..4fb846ad378bbf34804f694dbba8530141e56325 100644 (file)
@@ -39,7 +39,7 @@ u16 *ataid[AHCI_MAX_PORTS];
 
 /* Maximum timeouts for each event */
 #define WAIT_MS_SPINUP 20000
-#define WAIT_MS_DATAIO 5000
+#define WAIT_MS_DATAIO 10000
 #define WAIT_MS_FLUSH  5000
 #define WAIT_MS_LINKUP 200