diff options
author | Séguier Régis <rseguier@e-teleport.net> | 2009-06-16 07:25:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-18 03:29:11 -0400 |
commit | d3b238a03efd6d644ff93c8b10a1d38a596f2e34 (patch) | |
tree | 8b676d9b5824507d9d324fb9407de358f6107d28 | |
parent | 6905b1f1a03a48dcf115a2927f7b87dba8d5e566 (diff) |
via-velocity : fix no link detection on boot
on boot, link is always up.
Signed-off-by: Seguier Regis <rseguier@e-teleport.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/via-velocity.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index e2a7725e567e..b02f7adff5dc 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c | |||
@@ -989,8 +989,10 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi | |||
989 | if (ret < 0) | 989 | if (ret < 0) |
990 | goto err_iounmap; | 990 | goto err_iounmap; |
991 | 991 | ||
992 | if (velocity_get_link(dev)) | 992 | if (!velocity_get_link(dev)) { |
993 | netif_carrier_off(dev); | 993 | netif_carrier_off(dev); |
994 | vptr->mii_status |= VELOCITY_LINK_FAIL; | ||
995 | } | ||
994 | 996 | ||
995 | velocity_print_info(vptr); | 997 | velocity_print_info(vptr); |
996 | pci_set_drvdata(pdev, dev); | 998 | pci_set_drvdata(pdev, dev); |