Skip to content

Commit 4700783

Browse files
Matt Carlsondavem330
authored andcommitted
tg3: Add additional EEE messaging
This patch adds link messages and an item to the sign-on banner to make EEE status more visible. Signed-off-by: Matt Carlson <[email protected]> Reviewed-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1d36ba4 commit 4700783

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

drivers/net/tg3.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,11 @@ static void tg3_link_report(struct tg3 *tp)
13601360
"on" : "off",
13611361
(tp->link_config.active_flowctrl & FLOW_CTRL_RX) ?
13621362
"on" : "off");
1363+
1364+
if (tp->phy_flags & TG3_PHYFLG_EEE_CAP)
1365+
netdev_info(tp->dev, "EEE is %s\n",
1366+
tp->setlpicnt ? "enabled" : "disabled");
1367+
13631368
tg3_ump_link_report(tp);
13641369
}
13651370
}
@@ -15278,8 +15283,10 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
1527815283
ethtype = "10/100/1000Base-T";
1527915284

1528015285
netdev_info(dev, "attached PHY is %s (%s Ethernet) "
15281-
"(WireSpeed[%d])\n", tg3_phy_string(tp), ethtype,
15282-
(tp->phy_flags & TG3_PHYFLG_NO_ETH_WIRE_SPEED) == 0);
15286+
"(WireSpeed[%d], EEE[%d])\n",
15287+
tg3_phy_string(tp), ethtype,
15288+
(tp->phy_flags & TG3_PHYFLG_NO_ETH_WIRE_SPEED) == 0,
15289+
(tp->phy_flags & TG3_PHYFLG_EEE_CAP) != 0);
1528315290
}
1528415291

1528515292
netdev_info(dev, "RXcsums[%d] LinkChgREG[%d] MIirq[%d] ASF[%d] TSOcap[%d]\n",

0 commit comments

Comments
 (0)