Changeset 33070


Ignore:
Timestamp:
2012-08-08T23:51:18+02:00 (5 years ago)
Author:
florian
Message:

[mcs814x] nuport-mac: rework PHY interrupt configuration to avoid races

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c

    r33069 r33070  
    766766        } 
    767767 
    768         phy_start(priv->phydev); 
     768        ret = request_irq(priv->tx_irq, &nuport_mac_tx_interrupt, 
     769                                0, dev->name, dev); 
     770        if (ret) { 
     771                netdev_err(dev, "unable to request rx interrupt\n"); 
     772                goto out_link_irq; 
     773        } 
    769774 
    770775        /* Enable link interrupt monitoring for our PHY address */ 
     
    780785        spin_unlock_irqrestore(&priv->lock, flags); 
    781786 
    782         ret = request_irq(priv->tx_irq, &nuport_mac_tx_interrupt, 
    783                                 0, dev->name, dev); 
    784         if (ret) { 
    785                 netdev_err(dev, "unable to request rx interrupt\n"); 
    786                 goto out_link_irq; 
    787         } 
     787        phy_start(priv->phydev); 
    788788 
    789789        napi_enable(&priv->napi); 
Note: See TracChangeset for help on using the changeset viewer.