[brcm63xx] do not write to per-port over-current register, which is bogus (#6898)
[openwrt.git] / target / linux / brcm63xx / patches-2.6.33 / 230-external_phy_fix.patch
1 --- a/drivers/net/bcm63xx_enet.c
2 +++ b/drivers/net/bcm63xx_enet.c
3 @@ -962,7 +962,9 @@ static int bcm_enet_open(struct net_devi
4 /* all set, enable mac and interrupts, start dma engine and
5 * kick rx dma channel */
6 wmb();
7 - enet_writel(priv, ENET_CTL_ENABLE_MASK, ENET_CTL_REG);
8 + val = enet_readl(priv, ENET_CTL_REG);
9 + val |= ENET_CTL_ENABLE_MASK;
10 + enet_writel(priv, val, ENET_CTL_REG);
11 enet_dma_writel(priv, ENETDMA_CFG_EN_MASK, ENETDMA_CFG_REG);
12 enet_dma_writel(priv, ENETDMA_CHANCFG_EN_MASK,
13 ENETDMA_CHANCFG_REG(priv->rx_chan));
This page took 0.038187 seconds and 5 git commands to generate.