Skip to content

Commit

Permalink
tc35815: Mark carrier-off before starting PHY
Browse files Browse the repository at this point in the history
Call netif_carrier_off() before starting PHY device.  This is a
behavior before converting to generic PHY layer.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Atsushi Nemoto authored and Jeff Garzik committed Jun 27, 2008
1 parent f471f92 commit 59524a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/tc35815.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,7 @@ tc35815_open(struct net_device *dev)
tc35815_chip_init(dev);
spin_unlock_irq(&lp->lock);

netif_carrier_off(dev);
/* schedule a link state check */
phy_start(lp->phy_dev);

Expand Down Expand Up @@ -2453,6 +2454,7 @@ static int tc35815_resume(struct pci_dev *pdev)
return 0;
pci_set_power_state(pdev, PCI_D0);
tc35815_restart(dev);
netif_carrier_off(dev);
if (lp->phy_dev)
phy_start(lp->phy_dev);
netif_device_attach(dev);
Expand Down

0 comments on commit 59524a3

Please sign in to comment.