]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Fix APE mutex init and use
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 4 Nov 2011 09:14:58 +0000 (09:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2011 21:31:46 +0000 (17:31 -0400)
commit1eaaabbc410fcf0d30f9b3005c5aebe23d915b0d
tree871e63ccac34bef1440e0aa493bd0f08b93e74ec
parentf4be2cbf887b7848d44732aed0fa0fd08b5eb172
tg3: Fix APE mutex init and use

APE mutex register blocks are shared by all ports of multiport devices.
For some mutexing purposes, each function is assigned their own
register.  For other cases, each function is assigned its own request
and grant bits of a single register.  For the latter cases, the tg3
driver is incorrectly allowing each function to use the same set of
grant / request bits.  This patch fixes the code so that each function
uses the appropriate bitset.

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>
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/broadcom/tg3.h