Commit 59524a37 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Jeff Garzik

tc35815: Mark carrier-off before starting PHY

Call netif_carrier_off() before starting PHY device.  This is a
behavior before converting to generic PHY layer.
Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent f471f923
...@@ -1394,6 +1394,7 @@ tc35815_open(struct net_device *dev) ...@@ -1394,6 +1394,7 @@ tc35815_open(struct net_device *dev)
tc35815_chip_init(dev); tc35815_chip_init(dev);
spin_unlock_irq(&lp->lock); spin_unlock_irq(&lp->lock);
netif_carrier_off(dev);
/* schedule a link state check */ /* schedule a link state check */
phy_start(lp->phy_dev); phy_start(lp->phy_dev);
...@@ -2453,6 +2454,7 @@ static int tc35815_resume(struct pci_dev *pdev) ...@@ -2453,6 +2454,7 @@ static int tc35815_resume(struct pci_dev *pdev)
return 0; return 0;
pci_set_power_state(pdev, PCI_D0); pci_set_power_state(pdev, PCI_D0);
tc35815_restart(dev); tc35815_restart(dev);
netif_carrier_off(dev);
if (lp->phy_dev) if (lp->phy_dev)
phy_start(lp->phy_dev); phy_start(lp->phy_dev);
netif_device_attach(dev); netif_device_attach(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment