From 69a52b8078d41eafc25389cdd81c9865dbb4a01d Mon Sep 17 00:00:00 2001
From: Gary Bisson <gary.bisson@boundarydevices.com>
Date: Wed, 22 Feb 2017 21:10:20 +0100
Subject: [PATCH] ahci: extend data io wait to 20s

Some drives take even more than 10s to respond to the initial data
command while they're spinning up.

Signed-off-by: Laci Tele <laci@boundarydevices.com>
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
 drivers/ata/ahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index c35912bd334..6d514178d31 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -46,7 +46,7 @@ struct ahci_uc_priv *probe_ent = NULL;
 
 /* Maximum timeouts for each event */
 #define WAIT_MS_SPINUP	20000
-#define WAIT_MS_DATAIO	10000
+#define WAIT_MS_DATAIO	20000
 #define WAIT_MS_FLUSH	5000
 #define WAIT_MS_LINKUP	200
 
-- 
GitLab