]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a16b33110878e713ef7794a030fc2e1b5cc7da7
treebfad45f9fdff8553d4984cd02f31bf5beccf8151
parent9e10b4c18e5b4af593037cbfb0d708c29c6abb80
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