Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e415e6ea0cd36ece29c7b12232286b5ca097ac96
Commit:     e415e6ea0cd36ece29c7b12232286b5ca097ac96
Parent:     d2c7ddd6261eb885091cf6ddbcfae01f4216fb8e
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 15 22:50:08 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Jan 17 01:49:30 2008 -0800

    [NIU]: Fix 1G PHY link state handling.
    
    The code in link_status_1g() computes the active speed
    and duplex but does not update the link config state
    with those values.
    
    As a result the link speed is not reported correctly
    and the XIF is not reprogrammed properly on link up
    events.
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 drivers/net/niu.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 3bbcea1..5f6beab 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -1319,6 +1319,7 @@ static int link_status_10g(struct niu *np, int *link_up_p)
 
 static int link_status_1g(struct niu *np, int *link_up_p)
 {
+       struct niu_link_config *lp = &np->link_config;
        u16 current_speed, bmsr;
        unsigned long flags;
        u8 current_duplex;
@@ -1386,6 +1387,8 @@ static int link_status_1g(struct niu *np, int *link_up_p)
                                link_up = 0;
                }
        }
+       lp->active_speed = current_speed;
+       lp->active_duplex = current_duplex;
        err = 0;
 
 out:
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to