aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2008-08-15 17:07:24 -0400
committerDavid S. Miller <davem@davemloft.net>2008-08-15 17:07:24 -0400
commit77b483f132ba25edf4ef455dd87a91ab7bbf4170 (patch)
tree8cb8f8444de1228cafed26784923e1045aba64c7 /drivers/net/tg3.h
parentc6153b5b77650879d78dec76414213c76dd8d574 (diff)
tg3: Add APE register access locking
If the driver resets the chip while the APE is performing a register access, that register access will never complete and the APE will hang indefinitely. To prevent this race condition, the driver must acquire an APE mutex before resetting the chip. The APE will not attempt a register access until it acquires this lock. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index df07842172b7..dd1af508023a 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -1889,6 +1889,7 @@
1889#define APE_EVENT_STATUS_EVENT_PENDING 0x80000000 1889#define APE_EVENT_STATUS_EVENT_PENDING 0x80000000
1890 1890
1891/* APE convenience enumerations. */ 1891/* APE convenience enumerations. */
1892#define TG3_APE_LOCK_GRC 1
1892#define TG3_APE_LOCK_MEM 4 1893#define TG3_APE_LOCK_MEM 4
1893 1894
1894#define TG3_EEPROM_SB_F1R2_MBA_OFF 0x10 1895#define TG3_EEPROM_SB_F1R2_MBA_OFF 0x10