summaryrefslogtreecommitdiffstats
path: root/target/linux/mcs814x
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-10 07:04:21 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-10 07:04:21 +0000
commit3a86756f40b511afa47996f5f66c7dea8fac20aa (patch)
tree2b28985b709b00b8202c311bb2b9b47fb2ddf88d /target/linux/mcs814x
parentb3a374d1f128af185b1478a25fedfb5fd4f6fb56 (diff)
[mcs814x] nuport-mac: delay call to napi_start() until fully able to process RX
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33079 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 a2f7ee2cd..b14019d57 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: