diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-06-25 04:41:01 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-06-27 07:27:33 +0200 |
commit | 59524a37446e18a672188d86d23c8c76fd488621 (patch) | |
tree | 561f05423b750687bc4e40ad37e9b4e521f830d5 /drivers/net/tc35815.c | |
parent | s2io: fix documentation about intr_type (diff) | |
download | linux-59524a37446e18a672188d86d23c8c76fd488621.tar.xz linux-59524a37446e18a672188d86d23c8c76fd488621.zip |
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: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/tc35815.c')
-rw-r--r-- | drivers/net/tc35815.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index 10e4e85da3fc..dccea525165e 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c @@ -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); @@ -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); |