aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2009-11-02 09:32:38 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-03 02:39:15 -0500
commit52fae0837153e86e4dabaf5df517a0b8b7a20bd7 (patch)
tree72259bf0230f7facdbf6d928f8f1f662a133e10b /drivers/net/tg3.c
parentc704dc23cac0e433796bfe0a1fe2f1a64da11ac7 (diff)
tg3 / broadcom: Optionally disable TXC if no link
This patch adds code to disable the TXC and RXC reference clocks if link is not available. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index f74bf91e78cc..50bb53de5ebd 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -1103,6 +1103,7 @@ static int tg3_mdio_init(struct tg3 *tp)
1103 case TG3_PHY_ID_BCM50610M: 1103 case TG3_PHY_ID_BCM50610M:
1104 phydev->dev_flags |= PHY_BRCM_CLEAR_RGMII_MODE | 1104 phydev->dev_flags |= PHY_BRCM_CLEAR_RGMII_MODE |
1105 PHY_BRCM_RX_REFCLK_UNUSED | 1105 PHY_BRCM_RX_REFCLK_UNUSED |
1106 PHY_BRCM_DIS_TXCRXC_NOENRGY |
1106 PHY_BRCM_AUTO_PWRDWN_ENABLE; 1107 PHY_BRCM_AUTO_PWRDWN_ENABLE;
1107 if (tp->tg3_flags3 & TG3_FLG3_RGMII_STD_IBND_DISABLE) 1108 if (tp->tg3_flags3 & TG3_FLG3_RGMII_STD_IBND_DISABLE)
1108 phydev->dev_flags |= PHY_BRCM_STD_IBND_DISABLE; 1109 phydev->dev_flags |= PHY_BRCM_STD_IBND_DISABLE;