Skip to content

Commit

Permalink
b44: add calls to phy_{start,stop}
Browse files Browse the repository at this point in the history
When support for external phys was added to b44, the calls to start and
stop the phy were missing in the mac driver. This adds the calls to
phy_start() and phy_stop().

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hauke Mehrtens authored and David S. Miller committed Mar 3, 2014
1 parent 877767d commit 25d54fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/ethernet/broadcom/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,10 @@ static int b44_open(struct net_device *dev)
add_timer(&bp->timer);

b44_enable_ints(bp);

if (bp->flags & B44_FLAG_EXTERNAL_PHY)
phy_start(bp->phydev);

netif_start_queue(dev);
out:
return err;
Expand Down Expand Up @@ -1646,6 +1650,9 @@ static int b44_close(struct net_device *dev)

netif_stop_queue(dev);

if (bp->flags & B44_FLAG_EXTERNAL_PHY)
phy_stop(bp->phydev);

napi_disable(&bp->napi);

del_timer_sync(&bp->timer);
Expand Down

0 comments on commit 25d54fe

Please sign in to comment.