Skip to content

Commit

Permalink
qlge: Fix timeout on indexed register wait.
Browse files Browse the repository at this point in the history
There are 8 banks of 'sub-registers' each of which are accessed
through address/data register pair.  An example would be reading
flash or the xgmac.  Accessing these require the driver to wait for
a ready bit before writing the address and then accessing the data.
This patch increases the timeout to 100us to prevent timeouts
that have been seen on some platforms.
These register are accessed in process context only.

Signed-off-by: Ron Mercer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Ron Mercer authored and davem330 committed Jun 8, 2009
1 parent c8269b2 commit d2ba498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/qlge/qlge.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#define MAX_INTER_FRAME_WAIT 10 /* 10 usec max interframe-wait for coalescing */
#define DFLT_INTER_FRAME_WAIT (MAX_INTER_FRAME_WAIT/2)
#define UDELAY_COUNT 3
#define UDELAY_DELAY 10
#define UDELAY_DELAY 100


#define TX_DESC_PER_IOCB 8
Expand Down

0 comments on commit d2ba498

Please sign in to comment.