Skip to content

Commit a977dbe

Browse files
Matt Carlsondavem330
authored andcommitted
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>
1 parent 1a31902 commit a977dbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/net/tg3.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7654,6 +7654,11 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
76547654
val | TG3_PCIE_PL_LO_PHYCTL5_DIS_L2CLKREQ);
76557655

76567656
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);
76577662
}
76587663

76597664
/* This works around an issue with Athlon chipsets on

0 commit comments

Comments
 (0)