diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2011-04-20 03:57:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-21 20:05:59 -0400 |
commit | 470078312515f12e7cd916f1bd002acad313b9c8 (patch) | |
tree | e336ad9262d85b9eb6bd1f07c009d6f7746a9310 | |
parent | 1d36ba450bf8c88eda57deb028370880d09a14bc (diff) |
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>
-rw-r--r-- | drivers/net/tg3.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 9ed6bfb8e697..693f36e94dab 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -1360,6 +1360,11 @@ static void tg3_link_report(struct tg3 *tp) | |||
1360 | "on" : "off", | 1360 | "on" : "off", |
1361 | (tp->link_config.active_flowctrl & FLOW_CTRL_RX) ? | 1361 | (tp->link_config.active_flowctrl & FLOW_CTRL_RX) ? |
1362 | "on" : "off"); | 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 | tg3_ump_link_report(tp); | 1368 | tg3_ump_link_report(tp); |
1364 | } | 1369 | } |
1365 | } | 1370 | } |
@@ -15278,8 +15283,10 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, | |||
15278 | ethtype = "10/100/1000Base-T"; | 15283 | ethtype = "10/100/1000Base-T"; |
15279 | 15284 | ||
15280 | netdev_info(dev, "attached PHY is %s (%s Ethernet) " | 15285 | netdev_info(dev, "attached PHY is %s (%s Ethernet) " |
15281 | "(WireSpeed[%d])\n", tg3_phy_string(tp), ethtype, | 15286 | "(WireSpeed[%d], EEE[%d])\n", |
15282 | (tp->phy_flags & TG3_PHYFLG_NO_ETH_WIRE_SPEED) == 0); | 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); | ||
15283 | } | 15290 | } |
15284 | 15291 | ||
15285 | netdev_info(dev, "RXcsums[%d] LinkChgREG[%d] MIirq[%d] ASF[%d] TSOcap[%d]\n", | 15292 | netdev_info(dev, "RXcsums[%d] LinkChgREG[%d] MIirq[%d] ASF[%d] TSOcap[%d]\n", |