summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorIan Campbell <ijc@hellion.org.uk>2014-03-07 01:20:58 +0000
committerTom Rini <trini@ti.com>2014-03-10 13:50:31 -0400
commit73545f75b66d5bd68076742f082a5b7fdfb5b086 (patch)
tree15f41d219d8be80810fea73d32812c99c15e3697 /drivers/block
parentb946322670ca8eda2d41c854a00a863076df6446 (diff)
downloadu-boot-imx-73545f75b66d5bd68076742f082a5b7fdfb5b086.zip
u-boot-imx-73545f75b66d5bd68076742f082a5b7fdfb5b086.tar.gz
u-boot-imx-73545f75b66d5bd68076742f082a5b7fdfb5b086.tar.bz2
ahci: wait longer for link.
I have observed timeouts on a cubietruck. The increase to 40ms is completely arbitrary and Works For Me(tm). I couldn't find a good reference for how long you are supposed to wait, although googling around it seems like tens of ms rather than single digits is more common. I don't think there is any harm in waiting a bit longer. Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
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 22621bf..a409f63 100644
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
@@ -41,7 +41,7 @@ u16 *ataid[AHCI_MAX_PORTS];
#define WAIT_MS_SPINUP 20000
#define WAIT_MS_DATAIO 5000
#define WAIT_MS_FLUSH 5000
-#define WAIT_MS_LINKUP 4
+#define WAIT_MS_LINKUP 40
static inline u32 ahci_port_base(u32 base, u32 port)
{