mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 19:37:43 +02:00
[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
This commit is contained in:
parent
b3a374d1f1
commit
3a86756f40
@ -786,8 +786,6 @@ static int nuport_mac_open(struct net_device *dev)
|
|||||||
|
|
||||||
phy_start(priv->phydev);
|
phy_start(priv->phydev);
|
||||||
|
|
||||||
napi_enable(&priv->napi);
|
|
||||||
|
|
||||||
ret = request_irq(priv->rx_irq, &nuport_mac_rx_interrupt,
|
ret = request_irq(priv->rx_irq, &nuport_mac_rx_interrupt,
|
||||||
0, dev->name, dev);
|
0, dev->name, dev);
|
||||||
if (ret) {
|
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]);
|
ret = nuport_mac_start_rx_dma(priv, priv->rx_skb[0]);
|
||||||
spin_unlock_irqrestore(&priv->lock, flags);
|
spin_unlock_irqrestore(&priv->lock, flags);
|
||||||
|
|
||||||
|
napi_enable(&priv->napi);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
out_rx_skb:
|
out_rx_skb:
|
||||||
|
Loading…
Reference in New Issue
Block a user