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

[TG3]: Verify link advertisement correctly on 10/100 only chips.

parent 932e0450
......@@ -1366,7 +1366,8 @@ static int tg3_setup_copper_phy(struct tg3 *tp, int force_reset)
* low power mode.
*/
tg3_readphy(tp, MII_TG3_CTRL, &gig_ctrl);
if (!(gig_ctrl & (MII_TG3_CTRL_ADV_1000_HALF |
if (!(tp->tg3_flags & TG3_FLAG_10_100_ONLY) &&
!(gig_ctrl & (MII_TG3_CTRL_ADV_1000_HALF |
MII_TG3_CTRL_ADV_1000_FULL))) {
current_link_up = 0;
}
......
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