Patchwork [U-Boot,6/7] ahci: increase spin-up timeout to 20 sec

login
register
mail settings
Submitter Rob Herring
Date May 21, 2013, 10:44 p.m.
Message ID <1369176276-1895-6-git-send-email-robherring2@gmail.com>
Download mbox | patch
Permalink /patch/245444/
State Superseded
Delegated to: Tom Rini
Headers show

Comments

Rob Herring - May 21, 2013, 10:44 p.m.
From: Rob Herring <rob.herring@calxeda.com>

Based on Linux libata code, most drives are less than 10 sec, but some
need up to 20 sec.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
---
 drivers/block/ahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Tom Rini - May 24, 2013, 1:51 p.m.
On Tue, May 21, 2013 at 05:44:35PM -0500, Rob Herring wrote:

> From: Rob Herring <rob.herring@calxeda.com>
> 
> Based on Linux libata code, most drives are less than 10 sec, but some
> need up to 20 sec.
> 
> Signed-off-by: Rob Herring <rob.herring@calxeda.com>

Reviewed-by: Tom Rini <trini@ti.com>

Patch

diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index 5ffdf95..ac60891 100644
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
@@ -55,7 +55,7 @@  hd_driveid_t *ataid[AHCI_MAX_PORTS];
 #endif
 
 /* Maximum timeouts for each event */
-#define WAIT_MS_SPINUP	10000
+#define WAIT_MS_SPINUP	20000
 #define WAIT_MS_DATAIO	5000
 #define WAIT_MS_FLUSH	5000
 #define WAIT_MS_LINKUP	4