Commit 73545f75b66d5bd68076742f082a5b7fdfb5b086

Authored by Ian Campbell
Committed by Tom Rini
1 parent b946322670

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/block/ahci.c
... ... @@ -41,7 +41,7 @@
41 41 #define WAIT_MS_SPINUP 20000
42 42 #define WAIT_MS_DATAIO 5000
43 43 #define WAIT_MS_FLUSH 5000
44   -#define WAIT_MS_LINKUP 4
  44 +#define WAIT_MS_LINKUP 40
45 45  
46 46 static inline u32 ahci_port_base(u32 base, u32 port)
47 47 {