e1000e: avoid polling h/w registers during link negotiation
authorBruce Allan <bruce.w.allan@intel.com>
Thu, 17 Jun 2010 18:58:43 +0000 (18:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jun 2010 19:58:38 +0000 (12:58 -0700)
commit0c6bdb3084d015221270b418190b630553a38cf8
tree5362357877c998ecd88df96f45e03362a8db727d
parent69ad78208ecf4c392f3d323ed050423847c24104
e1000e: avoid polling h/w registers during link negotiation

Avoid touching hardware registers when possible, otherwise link negotiation
can get messed up when user-level scripts are rapidly polling the driver to
see if/when link is up.  Use the saved link state information instead when
possible.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/e1000.h
drivers/net/e1000e/ethtool.c
drivers/net/e1000e/netdev.c