Skip to content

Commit

Permalink
via-velocity : fix no link detection on boot
Browse files Browse the repository at this point in the history
on boot, link is always up.

Signed-off-by: Seguier Regis <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Séguier Régis authored and davem330 committed Jun 18, 2009
1 parent 6905b1f commit d3b238a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d3b238a

Please sign in to comment.