kernel: fix build with kernel 2.6.34-rc4
[openwrt.git] / target / linux / brcm63xx / patches-2.6.32 / 230-external_phy_fix.patch
1 --- linux-2.6.32.10.orig/drivers/net/bcm63xx_enet.c 2010-04-06 19:25:52.612158288 +0100
2 +++ linux-2.6.32.10/drivers/net/bcm63xx_enet.c 2010-04-07 21:40:26.991801424 +0100
3 @@ -965,7 +965,9 @@
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.040431 seconds and 5 git commands to generate.