linux/drivers/net/e1000e
Bruce Allan 5ccdcecb72 e1000e: allow for swflag to be held over consecutive PHY accesses
PCH-based parts (82577/82578) and some ICH8-based parts (82566) need to
hold the swflag (sw/fw/hw hardware semaphore) over consecutive PHY accesses
in order to perform sw-driven PHY configuration during initialization to
workaround known hardware issues (see follow-on patch).  This patch
provides new PHY read/write functions (and function pointers) that will
allow accessing the PHY registers assuming the swflag has already been
acquired.  The actual PHY register access code has moved into helper
functions that are called with a flag indicating whether or not the swflag
has already been acquired and acquires/releases it if not.

The functions called from within the updated PHY access functions had to be
updated to assume the swflag was already acquired, and other functions that
called those functions were also updated to acquire/release the swflag.

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>
2009-10-26 16:16:25 -07:00
..
82571.c e1000e: swap max hw supported frame size between 82574 and 82583 2009-10-04 21:08:49 -07:00
defines.h e1000e: delay after LCD reset and proper checks for PHY configuration done 2009-07-03 20:09:29 -07:00
e1000.h e1000e: allow for swflag to be held over consecutive PHY accesses 2009-10-26 16:16:25 -07:00
es2lan.c e1000e: add support for 82577/82578 GbE LOM parts 2009-06-03 02:46:34 -07:00
ethtool.c e1000e: Expose MDI-X status via ethtool change 2009-06-09 05:25:36 -07:00
hw.h e1000e: allow for swflag to be held over consecutive PHY accesses 2009-10-26 16:16:25 -07:00
ich8lan.c e1000e: allow for swflag to be held over consecutive PHY accesses 2009-10-26 16:16:25 -07:00
lib.c e1000e: disable K1 at 1000Mbps for 82577/82578 2009-07-03 20:09:42 -07:00
Makefile e1000e: reformat comment blocks, cosmetic changes only 2008-03-28 22:14:56 -04:00
netdev.c e1000e/igb/ixgbe: Don't report an error if devices don't support AER 2009-10-02 10:04:12 -07:00
param.c e1000e: enable CRC stripping by default 2009-06-03 02:46:31 -07:00
phy.c e1000e: allow for swflag to be held over consecutive PHY accesses 2009-10-26 16:16:25 -07:00