[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1245184399-11890-1-git-send-email-rseguier@e-teleport.net>
Date: Tue, 16 Jun 2009 20:33:19 +0000
From: Seguier Regis <rseguier@...eleport.net>
To: romieu@...zoreil.com, netdev@...r.kernel.org
Cc: Seguier Regis <rseguier@...eleport.net>
Subject: [PATCH] via-velocity : fix no link detection on boot
on boot, link is always up.
Signed-off-by: Seguier Regis <rseguier@...eleport.net>
---
drivers/net/via-velocity.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
index 754a4b1..bd3335e 100644
--- a/drivers/net/via-velocity.c
+++ b/drivers/net/via-velocity.c
@@ -989,8 +989,11 @@ 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);
--
1.6.1.rc2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists