diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2011-07-13 09:27:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-14 08:41:59 -0700 |
commit | 6f5c8f8317d37045ffc7ea21dab8319a53c1ae57 (patch) | |
tree | 21bf19658f1997346780e5ed5fd72093f2c57107 /drivers/net/tg3.h | |
parent | 69f11c9936ba310ed3620072983da6ed95e86cc0 (diff) | |
download | op-kernel-dev-6f5c8f8317d37045ffc7ea21dab8319a53c1ae57.zip op-kernel-dev-6f5c8f8317d37045ffc7ea21dab8319a53c1ae57.tar.gz |
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>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r-- | drivers/net/tg3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index b4c003d..e444469 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h @@ -2339,6 +2339,7 @@ /* APE convenience enumerations. */ #define TG3_APE_LOCK_GRC 1 #define TG3_APE_LOCK_MEM 4 +#define TG3_APE_LOCK_GPIO 7 #define TG3_EEPROM_SB_F1R2_MBA_OFF 0x10 |