aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index fc9df25f76b1..e1f4a18ebb81 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -7404,8 +7404,9 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
7404 ((u64) tpr->rx_std_mapping >> 32)); 7404 ((u64) tpr->rx_std_mapping >> 32));
7405 tw32(RCVDBDI_STD_BD + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_LOW, 7405 tw32(RCVDBDI_STD_BD + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_LOW,
7406 ((u64) tpr->rx_std_mapping & 0xffffffff)); 7406 ((u64) tpr->rx_std_mapping & 0xffffffff));
7407 tw32(RCVDBDI_STD_BD + TG3_BDINFO_NIC_ADDR, 7407 if (!(tp->tg3_flags3 & TG3_FLG3_5755_PLUS))
7408 NIC_SRAM_RX_BUFFER_DESC); 7408 tw32(RCVDBDI_STD_BD + TG3_BDINFO_NIC_ADDR,
7409 NIC_SRAM_RX_BUFFER_DESC);
7409 7410
7410 /* Disable the mini ring */ 7411 /* Disable the mini ring */
7411 if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS)) 7412 if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS))
@@ -7428,8 +7429,9 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
7428 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_MAXLEN_FLAGS, 7429 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_MAXLEN_FLAGS,
7429 (RX_JUMBO_MAX_SIZE << BDINFO_FLAGS_MAXLEN_SHIFT) | 7430 (RX_JUMBO_MAX_SIZE << BDINFO_FLAGS_MAXLEN_SHIFT) |
7430 BDINFO_FLAGS_USE_EXT_RECV); 7431 BDINFO_FLAGS_USE_EXT_RECV);
7431 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_NIC_ADDR, 7432 if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS))
7432 NIC_SRAM_RX_JUMBO_BUFFER_DESC); 7433 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_NIC_ADDR,
7434 NIC_SRAM_RX_JUMBO_BUFFER_DESC);
7433 } else { 7435 } else {
7434 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_MAXLEN_FLAGS, 7436 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_MAXLEN_FLAGS,
7435 BDINFO_FLAGS_DISABLED); 7437 BDINFO_FLAGS_DISABLED);