dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Séguier Régis 2009-06-16 11:25:49 +00:00 committed by David S. Miller
parent 6905b1f1a0
commit d3b238a03e
1 changed files with 3 additions and 1 deletions

View File

@ -989,8 +989,10 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi
if (ret < 0)
goto err_iounmap;
if (velocity_get_link(dev))
if (!velocity_get_link(dev)) {
netif_carrier_off(dev);
vptr->mii_status |= VELOCITY_LINK_FAIL;
}
velocity_print_info(vptr);
pci_set_drvdata(pdev, dev);