Commit 47007831 authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller

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: default avatarMatt Carlson <mcarlson@broadcom.com>
Reviewed-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1d36ba45
...@@ -1360,6 +1360,11 @@ static void tg3_link_report(struct tg3 *tp) ...@@ -1360,6 +1360,11 @@ static void tg3_link_report(struct tg3 *tp)
"on" : "off", "on" : "off",
(tp->link_config.active_flowctrl & FLOW_CTRL_RX) ? (tp->link_config.active_flowctrl & FLOW_CTRL_RX) ?
"on" : "off"); "on" : "off");
if (tp->phy_flags & TG3_PHYFLG_EEE_CAP)
netdev_info(tp->dev, "EEE is %s\n",
tp->setlpicnt ? "enabled" : "disabled");
tg3_ump_link_report(tp); tg3_ump_link_report(tp);
} }
} }
...@@ -15278,8 +15283,10 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, ...@@ -15278,8 +15283,10 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
ethtype = "10/100/1000Base-T"; ethtype = "10/100/1000Base-T";
netdev_info(dev, "attached PHY is %s (%s Ethernet) " netdev_info(dev, "attached PHY is %s (%s Ethernet) "
"(WireSpeed[%d])\n", tg3_phy_string(tp), ethtype, "(WireSpeed[%d], EEE[%d])\n",
(tp->phy_flags & TG3_PHYFLG_NO_ETH_WIRE_SPEED) == 0); tg3_phy_string(tp), ethtype,
(tp->phy_flags & TG3_PHYFLG_NO_ETH_WIRE_SPEED) == 0,
(tp->phy_flags & TG3_PHYFLG_EEE_CAP) != 0);
} }
netdev_info(dev, "RXcsums[%d] LinkChgREG[%d] MIirq[%d] ASF[%d] TSOcap[%d]\n", netdev_info(dev, "RXcsums[%d] LinkChgREG[%d] MIirq[%d] ASF[%d] TSOcap[%d]\n",
......
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