e1000e: only perform ESB2 MDIC workaround on certain configurations
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 8 Dec 2009 07:28:20 +0000 (07:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2009 04:10:12 +0000 (20:10 -0800)
commit3421eecdee750bafc78b12ac25b3e980195265eb
tree40df8a228f3971487a3f48bd1e880df1f88d5861
parent0781895067444db98050a1537bafbc7a0235ec9f
e1000e: only perform ESB2 MDIC workaround on certain configurations

A workaround added for all ESB2 devices (adds a delay for all MDIC accesses
which resolves an issue with the MDIC ready bit being set prematurely) is
applicable only to devices in which the MAC-PHY interconnect is not
operating in a certain mode with in-band MDIO.  Check the control register
for the operating mode and enable the workaround accordingly.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/es2lan.c
drivers/net/e1000e/hw.h