e1000e: separate mutex usage between NVM and PHY/CSR register for ICHx/PCH
authorBruce Allan <bruce.w.allan@intel.com>
Mon, 26 Oct 2009 11:23:43 +0000 (11:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Oct 2009 23:16:24 +0000 (16:16 -0700)
commitca15df58b1b98f073393eef3704674b45d1cb474
treebfad45f9fdff8553d4984cd02f31bf5beccf8151
parentfa2ce13ca7a415332181adf2eb06d39e8e5054f7
e1000e: separate mutex usage between NVM and PHY/CSR register for ICHx/PCH

Accesses to NVM and PHY/CSR registers on ICHx/PCH-based parts are protected
from concurrent accesses with a mutex that is acquired when the access is
initiated and released when the access has completed.  However, the two
types of accesses should not be protected by the same mutex because the
driver may have to access the NVM while already holding the mutex over
several consecutive PHY/CSR accesses which would result in livelock.

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/ich8lan.c