diff options
author | Michael Chan <mchan@broadcom.com> | 2006-06-29 23:15:13 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-30 17:11:55 -0400 |
commit | 1661394e78b3b2cc868cd0e89c1066974302aaca (patch) | |
tree | bdbbe205062b8bb2ae2edc5aab2d224c58ca862b | |
parent | f92905deb9bc89834dac247ca1a0d905ebcf629b (diff) |
[TG3]: Turn on hw fix for ASF problems
Clear a bit to enable a hardware fix for some ASF related problem.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/tg3.c | 8 | ||||
-rw-r--r-- | drivers/net/tg3.h | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index c32655ca3c4..2c36e70e37e 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -6157,8 +6157,12 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy) | |||
6157 | #endif | 6157 | #endif |
6158 | 6158 | ||
6159 | /* Receive/send statistics. */ | 6159 | /* Receive/send statistics. */ |
6160 | if ((rdmac_mode & RDMAC_MODE_FIFO_SIZE_128) && | 6160 | if (tp->tg3_flags2 & TG3_FLG2_5750_PLUS) { |
6161 | (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE)) { | 6161 | val = tr32(RCVLPC_STATS_ENABLE); |
6162 | val &= ~RCVLPC_STATSENAB_DACK_FIX; | ||
6163 | tw32(RCVLPC_STATS_ENABLE, val); | ||
6164 | } else if ((rdmac_mode & RDMAC_MODE_FIFO_SIZE_128) && | ||
6165 | (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE)) { | ||
6162 | val = tr32(RCVLPC_STATS_ENABLE); | 6166 | val = tr32(RCVLPC_STATS_ENABLE); |
6163 | val &= ~RCVLPC_STATSENAB_LNGBRST_RFIX; | 6167 | val &= ~RCVLPC_STATSENAB_LNGBRST_RFIX; |
6164 | tw32(RCVLPC_STATS_ENABLE, val); | 6168 | tw32(RCVLPC_STATS_ENABLE, val); |
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index e9177f8521d..97a860433b5 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -760,6 +760,7 @@ | |||
760 | #define RCVLPC_STATSCTRL_ENABLE 0x00000001 | 760 | #define RCVLPC_STATSCTRL_ENABLE 0x00000001 |
761 | #define RCVLPC_STATSCTRL_FASTUPD 0x00000002 | 761 | #define RCVLPC_STATSCTRL_FASTUPD 0x00000002 |
762 | #define RCVLPC_STATS_ENABLE 0x00002018 | 762 | #define RCVLPC_STATS_ENABLE 0x00002018 |
763 | #define RCVLPC_STATSENAB_DACK_FIX 0x00040000 | ||
763 | #define RCVLPC_STATSENAB_LNGBRST_RFIX 0x00400000 | 764 | #define RCVLPC_STATSENAB_LNGBRST_RFIX 0x00400000 |
764 | #define RCVLPC_STATS_INCMASK 0x0000201c | 765 | #define RCVLPC_STATS_INCMASK 0x0000201c |
765 | /* 0x2020 --> 0x2100 unused */ | 766 | /* 0x2020 --> 0x2100 unused */ |