mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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:
parent
6905b1f1a0
commit
d3b238a03e
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue