Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Matt Carlson and committed by
David S. Miller
47007831 1d36ba45

+9 -2
+9 -2
drivers/net/tg3.c
··· 1360 1360 "on" : "off", 1361 1361 (tp->link_config.active_flowctrl & FLOW_CTRL_RX) ? 1362 1362 "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 + 1363 1368 tg3_ump_link_report(tp); 1364 1369 } 1365 1370 } ··· 15283 15278 ethtype = "10/100/1000Base-T"; 15284 15279 15285 15280 netdev_info(dev, "attached PHY is %s (%s Ethernet) " 15286 - "(WireSpeed[%d])\n", tg3_phy_string(tp), ethtype, 15287 - (tp->phy_flags & TG3_PHYFLG_NO_ETH_WIRE_SPEED) == 0); 15281 + "(WireSpeed[%d], EEE[%d])\n", 15282 + tg3_phy_string(tp), ethtype, 15283 + (tp->phy_flags & TG3_PHYFLG_NO_ETH_WIRE_SPEED) == 0, 15284 + (tp->phy_flags & TG3_PHYFLG_EEE_CAP) != 0); 15288 15285 } 15289 15286 15290 15287 netdev_info(dev, "RXcsums[%d] LinkChgREG[%d] MIirq[%d] ASF[%d] TSOcap[%d]\n",