From 76b2070945232323eed7a8405d6385c9d7fdf98e Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Mon, 27 Mar 2006 23:17:27 -0800 Subject: [PATCH] --- yaml --- r: 24669 b: refs/heads/master c: ff18ff023495a4f1ce7c65e7c376c4720eccf4da h: refs/heads/master i: 24667: af435a78b901d3b37c545931a7c26b6859680a7b v: v3 --- [refs] | 2 +- trunk/drivers/net/tg3.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 3c373875a6e1..b226e32f3c60 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6728a8e2e180b96ac7940dd4d766c52f8e177717 +refs/heads/master: ff18ff023495a4f1ce7c65e7c376c4720eccf4da diff --git a/trunk/drivers/net/tg3.c b/trunk/drivers/net/tg3.c index 0fafc5264627..3c5c9fafe9c8 100644 --- a/trunk/drivers/net/tg3.c +++ b/trunk/drivers/net/tg3.c @@ -8399,8 +8399,11 @@ static int tg3_run_loopback(struct tg3 *tp, int loopback_mode) } mac_mode = (tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK) | MAC_MODE_LINK_POLARITY | MAC_MODE_PORT_MODE_GMII; - if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5401) + if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5401) { mac_mode &= ~MAC_MODE_LINK_POLARITY; + tg3_writephy(tp, MII_TG3_EXT_CTRL, + MII_TG3_EXT_CTRL_LNK3_LED_MODE); + } tw32(MAC_MODE, mac_mode); } else