Commit d3b238a0 authored by Séguier Régis's avatar Séguier Régis Committed by David S. Miller

via-velocity : fix no link detection on boot

on boot, link is always up.
Signed-off-by: default avatarSeguier Regis <rseguier@e-teleport.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6905b1f1
......@@ -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);
......
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