summaryrefslogtreecommitdiffstats
path: root/target/linux/mcs814x
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-08-10 07:04:21 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-08-10 07:04:21 +0000
commitc16bf519f18090d9563f50aa983247f80b8bd47d (patch)
tree710ac8ab526722ec027161d9924429b48fccfe4c /target/linux/mcs814x
parent0028429dfa31c010378ab16c8580aa082e1bd408 (diff)
downloadopenwrt-c16bf519f18090d9563f50aa983247f80b8bd47d.tar.gz
openwrt-c16bf519f18090d9563f50aa983247f80b8bd47d.tar.bz2
openwrt-c16bf519f18090d9563f50aa983247f80b8bd47d.zip
nuport-mac: delay call to napi_start() until fully able to process RX
SVN-Revision: 33079
Diffstat (limited to 'target/linux/mcs814x')
-rw-r--r--target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c
index a2f7ee2cd5..b14019d578 100644
--- a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c
+++ b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c
@@ -786,8 +786,6 @@ static int nuport_mac_open(struct net_device *dev)
phy_start(priv->phydev);
- napi_enable(&priv->napi);
-
ret = request_irq(priv->rx_irq, &nuport_mac_rx_interrupt,
0, dev->name, dev);
if (ret) {
@@ -813,6 +811,8 @@ static int nuport_mac_open(struct net_device *dev)
ret = nuport_mac_start_rx_dma(priv, priv->rx_skb[0]);
spin_unlock_irqrestore(&priv->lock, flags);
+ napi_enable(&priv->napi);
+
return ret;
out_rx_skb: