Commit f0cf5f77 authored by David S. Miller's avatar David S. Miller

[TG3]: Do not reset the RX_MAC unless PHY is Serdes.

Bug discovered by Michael Chan @ Broadcom.
parent b0ad8ec8
......@@ -4573,9 +4573,11 @@ static int tg3_reset_hw(struct tg3 *tp)
tw32(MAC_LED_CTRL, 0);
tw32(MAC_MI_STAT, MAC_MI_STAT_LNKSTAT_ATTN_ENAB);
if (tp->phy_id == PHY_ID_SERDES) {
tw32(MAC_RX_MODE, RX_MODE_RESET);
tr32(MAC_RX_MODE);
udelay(10);
}
tw32(MAC_RX_MODE, tp->rx_mode);
tr32(MAC_RX_MODE);
udelay(10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment