• Bruce Allan's avatar
    e1000e: allow for swflag to be held over consecutive PHY accesses · 5ccdcecb
    Bruce Allan authored
    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: default avatarBruce Allan <bruce.w.allan@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5ccdcecb
ich8lan.c 88.1 KB