Skip to content

Commit

Permalink
net: systemport: start with carrier off
Browse files Browse the repository at this point in the history
The SYSTEMPORT driver uses libphy to determine the carrier state, so
make sure we start with a carrier off until libphy has completed the
link training process.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jun 5, 2014
1 parent e0ea05d commit f532e74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/broadcom/bcmsysport.c
Original file line number Diff line number Diff line change
@@ -1595,6 +1595,9 @@ static int bcm_sysport_probe(struct platform_device *pdev)
*/
dev->flags &= ~IFF_MULTICAST;

/* libphy will adjust the link state accordingly */
netif_carrier_off(dev);

ret = register_netdev(dev);
if (ret) {
dev_err(&pdev->dev, "failed to register net_device\n");

0 comments on commit f532e74

Please sign in to comment.