tg3: Fix link down notify failure when EEE disabled
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 20 Jul 2011 10:20:52 +0000 (10:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jul 2011 19:36:15 +0000 (12:36 -0700)
commitb715ce947f51c6637e78b262501f0c4ff9d848cc
treec3cb340a096d646cf2d1440309d87f4fd2b767a8
parentbe671947b5b3efc6863ff429c1f265aa38e291db
tg3: Fix link down notify failure when EEE disabled

Occasionally, when the network cable is removed after a successful
autonegotiation, the device will not send a link down interrupt to the
driver.  This happens because of a bad interaction of an EEE
workaround.  The fix is to adjust the code so that the root cause
condition does not happen.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c