summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorMark Langsdorf <mark.langsdorf@gmail.com>2015-06-05 00:58:46 +0100
committerTom Rini <trini@konsulko.com>2015-06-12 16:53:04 -0400
commitf8b009e8b783519023ab4ee0bfff59c0eef3ffdd (patch)
treec8080fdb24b28947910eabdf8bf82d7ea2d8166a /drivers/block
parent2b42c9317db730170ba8e1eb1c0417955c6e68bb (diff)
ahci: extend data io wait to 10s
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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index fe667a07697..4fb846ad378 100644
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
@@ -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