brcm47xx: b44: start the phy
[openwrt.git] / target / linux / brcm47xx / patches-3.10 / 211-b44-start_phy.patch
1 --- a/drivers/net/ethernet/broadcom/b44.c
2 +++ b/drivers/net/ethernet/broadcom/b44.c
3 @@ -1511,6 +1511,10 @@ static int b44_open(struct net_device *d
4         add_timer(&bp->timer);
5  
6         b44_enable_ints(bp);
7 +
8 +       if (bp->flags & B44_FLAG_EXTERNAL_PHY)
9 +               phy_start(bp->phydev);
10 +
11         netif_start_queue(dev);
12  out:
13         return err;
14 @@ -1673,6 +1677,9 @@ static int b44_close(struct net_device *
15  
16         netif_stop_queue(dev);
17  
18 +       if (bp->flags & B44_FLAG_EXTERNAL_PHY)
19 +               phy_stop(bp->phydev);
20 +
21         napi_disable(&bp->napi);
22  
23         del_timer_sync(&bp->timer);