mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 05:12:29 +02:00
[brcm63xx] do not overwrite ENET_CTL_REG, fixes ethernet on bcm6338
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20765 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c4e7fe7515
commit
7612d83820
@ -0,0 +1,13 @@
|
|||||||
|
--- linux-2.6.32.10.orig/drivers/net/bcm63xx_enet.c 2010-04-06 19:25:52.612158288 +0100
|
||||||
|
+++ linux-2.6.32.10/drivers/net/bcm63xx_enet.c 2010-04-07 21:40:26.991801424 +0100
|
||||||
|
@@ -965,7 +965,9 @@
|
||||||
|
/* all set, enable mac and interrupts, start dma engine and
|
||||||
|
* kick rx dma channel */
|
||||||
|
wmb();
|
||||||
|
- enet_writel(priv, ENET_CTL_ENABLE_MASK, ENET_CTL_REG);
|
||||||
|
+ val = enet_readl(priv, ENET_CTL_REG);
|
||||||
|
+ val |= ENET_CTL_ENABLE_MASK;
|
||||||
|
+ enet_writel(priv, val, ENET_CTL_REG);
|
||||||
|
enet_dma_writel(priv, ENETDMA_CFG_EN_MASK, ENETDMA_CFG_REG);
|
||||||
|
enet_dma_writel(priv, ENETDMA_CHANCFG_EN_MASK,
|
||||||
|
ENETDMA_CHANCFG_REG(priv->rx_chan));
|
@ -0,0 +1,13 @@
|
|||||||
|
--- linux-2.6.32.10.orig/drivers/net/bcm63xx_enet.c 2010-04-06 19:25:52.612158288 +0100
|
||||||
|
+++ linux-2.6.32.10/drivers/net/bcm63xx_enet.c 2010-04-07 21:40:26.991801424 +0100
|
||||||
|
@@ -965,7 +965,9 @@
|
||||||
|
/* all set, enable mac and interrupts, start dma engine and
|
||||||
|
* kick rx dma channel */
|
||||||
|
wmb();
|
||||||
|
- enet_writel(priv, ENET_CTL_ENABLE_MASK, ENET_CTL_REG);
|
||||||
|
+ val = enet_readl(priv, ENET_CTL_REG);
|
||||||
|
+ val |= ENET_CTL_ENABLE_MASK;
|
||||||
|
+ enet_writel(priv, val, ENET_CTL_REG);
|
||||||
|
enet_dma_writel(priv, ENETDMA_CFG_EN_MASK, ENETDMA_CFG_REG);
|
||||||
|
enet_dma_writel(priv, ENETDMA_CHANCFG_EN_MASK,
|
||||||
|
ENETDMA_CHANCFG_REG(priv->rx_chan));
|
Loading…
Reference in New Issue
Block a user