Commit:     79f3d3996f06ee339c6f173e573826eccd3914ab
Parent:     15e376b4eed2575b323d575403569ec1b5f63fda
Author:     Jesse Brandeburg <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 15 10:42:34 2006 +0100
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Tue Dec 26 15:51:30 2006 -0500

    [PATCH] e1000: No-delay link detection at interface up
    Currently after an interface up, the link state is detected 2 seconds later
    when the first watchdog timer runs. This patch changes that by triggering
    the hardware to generate a link-change interrupt from the up() function
    instead. This has the result that the link state gets detected immediately
    and without races. This has the potential to speed up booting since a normal
    distribution boot process waits for a link before DHCP is attempted.
    Signed-off-by: Jesse Brandeburg <[EMAIL PROTECTED]>
    Signed-off-by: Auke Kok <[EMAIL PROTECTED]>
    Signed-off-by: Arjan van de Ven <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
 drivers/net/e1000/e1000_main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index b06b51a..8c4924f 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -556,7 +556,8 @@ e1000_up(struct e1000_adapter *adapter)
        clear_bit(__E1000_DOWN, &adapter->flags);
-       mod_timer(&adapter->watchdog_timer, jiffies + 2 * HZ);
+       /* fire a link change interrupt to start the watchdog */
+       E1000_WRITE_REG(&adapter->hw, ICS, E1000_ICS_LSC);
        return 0;
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

Reply via email to