diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2007-11-13 00:16:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-13 00:16:17 -0500 |
commit | 662f38d242488cfdcda7b3684ac610d3e4d568a7 (patch) | |
tree | e4557b5d2ec89f5d9b858e29ca40215eade01cef /drivers/net/tg3.c | |
parent | e875093c9659d2a9f3923aa9ee1b89ef40cf95b9 (diff) |
[TG3]: Disable GPHY autopowerdown
New CPMU devices contend with the GPHY for power management. The GPHY
autopowerdown feature is enabled by default in the PHY and thus needs to
be disabled after every PHY reset.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 25e57d8ddb5..b5c4799003e 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -1117,6 +1117,12 @@ static int tg3_phy_reset(struct tg3 *tp) | |||
1117 | udelay(40); | 1117 | udelay(40); |
1118 | tw32_f(TG3_CPMU_LSPD_1000MB_CLK, val); | 1118 | tw32_f(TG3_CPMU_LSPD_1000MB_CLK, val); |
1119 | } | 1119 | } |
1120 | |||
1121 | /* Disable GPHY autopowerdown. */ | ||
1122 | tg3_writephy(tp, MII_TG3_MISC_SHDW, | ||
1123 | MII_TG3_MISC_SHDW_WREN | | ||
1124 | MII_TG3_MISC_SHDW_APD_SEL | | ||
1125 | MII_TG3_MISC_SHDW_APD_WKTM_84MS); | ||
1120 | } | 1126 | } |
1121 | 1127 | ||
1122 | out: | 1128 | out: |