Skip to content

Commit

Permalink
axnet_cs: reduce delay time at ei_rx_overrun
Browse files Browse the repository at this point in the history
axnet_cs:
    mdelay of 10ms is too long at ei_rx_overrun.
    It should be reduced to 2ms.

Signed-off-by: Ken Kawasaki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Ken Kawasaki authored and davem330 committed Feb 1, 2011
1 parent 8587523 commit 785e8cc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/net/pcmcia/axnet_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,12 +1488,10 @@ static void ei_rx_overrun(struct net_device *dev)

/*
* Wait a full Tx time (1.2ms) + some guard time, NS says 1.6ms total.
* Early datasheets said to poll the reset bit, but now they say that
* it "is not a reliable indicator and subsequently should be ignored."
* We wait at least 10ms.
* We wait at least 2ms.
*/

mdelay(10);
mdelay(2);

/*
* Reset RBCR[01] back to zero as per magic incantation.
Expand Down

0 comments on commit 785e8cc

Please sign in to comment.