aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-04-12 02:58:26 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-13 05:25:44 -0400
commita977dbe8445b8a81d6127c4aa9112a2c29a1a008 (patch)
tree00120e7881eb329122d0d4ca06d4b90b6c8c0444 /drivers/net/tg3.c
parent1a3190254c0d1d1951e1d7e93542387c6ec82384 (diff)
tg3: Reduce 57765 core clock when link at 10Mbps
This patch reduces the core clock to 6.25MHz when operating at 10Mbps link speed. This is needed to prevent a bug that will ultimately cause transmits to cease. 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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index a0ab89eb8bcc..3e893231fef3 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -7654,6 +7654,11 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
7654 val | TG3_PCIE_PL_LO_PHYCTL5_DIS_L2CLKREQ); 7654 val | TG3_PCIE_PL_LO_PHYCTL5_DIS_L2CLKREQ);
7655 7655
7656 tw32(GRC_MODE, grc_mode); 7656 tw32(GRC_MODE, grc_mode);
7657
7658 val = tr32(TG3_CPMU_LSPD_10MB_CLK);
7659 val &= ~CPMU_LSPD_10MB_MACCLK_MASK;
7660 val |= CPMU_LSPD_10MB_MACCLK_6_25;
7661 tw32(TG3_CPMU_LSPD_10MB_CLK, val);
7657 } 7662 }
7658 7663
7659 /* This works around an issue with Athlon chipsets on 7664 /* This works around an issue with Athlon chipsets on