diff options
author | Gary Zambrano <zambrano@broadcom.com> | 2007-02-16 16:27:27 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-17 15:37:14 -0500 |
commit | 40ee8c768cbb57aac7e55f7b54572afa8a9eac5a (patch) | |
tree | 2d62fc3e95be6e4af542d237ed4f16c36f0d059b /drivers/net | |
parent | 97db9ee7ee86aba1117ea6605413e0972b506fbc (diff) |
B44: increase wait loop
The b44 Enet control disable bit may take longer to clear on some
systems, so the loop count is increased with this patch. Functionality
is not compromised, but a debug message can be seen when the bit is not
cleared within the count value.
Thanks to Vasileios Lourdas who reported the problem.
Signed-off by: Gary Zambrano <zambrano@broadcom.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/b44.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 9332f4c2dc6f..aaada572732a 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -1288,7 +1288,7 @@ static void b44_chip_reset(struct b44 *bp) | |||
1288 | if (ssb_is_core_up(bp)) { | 1288 | if (ssb_is_core_up(bp)) { |
1289 | bw32(bp, B44_RCV_LAZY, 0); | 1289 | bw32(bp, B44_RCV_LAZY, 0); |
1290 | bw32(bp, B44_ENET_CTRL, ENET_CTRL_DISABLE); | 1290 | bw32(bp, B44_ENET_CTRL, ENET_CTRL_DISABLE); |
1291 | b44_wait_bit(bp, B44_ENET_CTRL, ENET_CTRL_DISABLE, 100, 1); | 1291 | b44_wait_bit(bp, B44_ENET_CTRL, ENET_CTRL_DISABLE, 200, 1); |
1292 | bw32(bp, B44_DMATX_CTRL, 0); | 1292 | bw32(bp, B44_DMATX_CTRL, 0); |
1293 | bp->tx_prod = bp->tx_cons = 0; | 1293 | bp->tx_prod = bp->tx_cons = 0; |
1294 | if (br32(bp, B44_DMARX_STAT) & DMARX_STAT_EMASK) { | 1294 | if (br32(bp, B44_DMARX_STAT) & DMARX_STAT_EMASK) { |