via-velocity : fix no link detection on boot

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, June 18, 2009 - 3:03 pm

Gitweb:     http://git.kernel.org/linus/d3b238a03efd6d644ff93c8b10a1d38a596f2e34
Commit:     d3b238a03efd6d644ff93c8b10a1d38a596f2e34
Parent:     6905b1f1a03a48dcf115a2927f7b87dba8d5e566
Author:     Séguier Régis <rseguier@e-teleport.net>
AuthorDate: Tue Jun 16 11:25:49 2009 +0000
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Jun 18 00:29:11 2009 -0700

    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>
---
 drivers/net/via-velocity.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
index e2a7725..b02f7ad 100644
--- a/drivers/net/via-velocity.c
+++ b/drivers/net/via-velocity.c
@@ -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);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
via-velocity : fix no link detection on boot, Linux Kernel Mailing ..., (Thu Jun 18, 3:03 pm)