tg3: Create critical section around GPIO toggling
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Jul 2011 09:27:31 +0000 (09:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 15:41:59 +0000 (08:41 -0700)
commit6f5c8f8317d37045ffc7ea21dab8319a53c1ae57
tree21bf19658f1997346780e5ed5fd72093f2c57107
parent69f11c9936ba310ed3620072983da6ed95e86cc0
tg3: Create critical section around GPIO toggling

The code that performs the power source switching will need to consider
the status of the other devices before making any switches.  The status
updates and power source switching will need to be an atomic operation,
so a critical section will be needed.  This patch establishes the
critical section through a CPMU mutex.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h