diff mbox

[U-Boot,5/8] ahci: extend data io wait to 10s

Message ID 1433462329-10680-6-git-send-email-osp@andrep.de
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Andre Przywara June 4, 2015, 11:58 p.m. UTC
From: Mark Langsdorf <mark.langsdorf@gmail.com>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini June 13, 2015, 2:10 a.m. UTC | #1
On Fri, Jun 05, 2015 at 12:58:46AM +0100, Andre Przywara wrote:

> From: Mark Langsdorf <mark.langsdorf@gmail.com>
> 
> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index 28d0b08..eb22586 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