]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/tg3.c
tg3: Reduce 57765 core clock when link at 10Mbps
[net-next-2.6.git] / drivers / net / tg3.c
index a0ab89eb8bcc3fc52d352244cb91120e38995fe6..3e893231fef32c2266ae7ec4c9b9982cbd9aef97 100644 (file)
@@ -7654,6 +7654,11 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
                     val | TG3_PCIE_PL_LO_PHYCTL5_DIS_L2CLKREQ);
 
                tw32(GRC_MODE, grc_mode);
+
+               val = tr32(TG3_CPMU_LSPD_10MB_CLK);
+               val &= ~CPMU_LSPD_10MB_MACCLK_MASK;
+               val |= CPMU_LSPD_10MB_MACCLK_6_25;
+               tw32(TG3_CPMU_LSPD_10MB_CLK, val);
        }
 
        /* This works around an issue with Athlon chipsets on