]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 02:27:03 +0000 (10:27 +0800)
commit04cf330eb9f4126d2a8b056071006c882719a8e0
treec0a3043bd8ddbd2582498d93b9d81b4e81568386
parent5032b45866c974ed7d2d6e039fdd6b4e514570f0
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.

(cherry picked from commit 78f94dc7b10d98cf4cf8498d98581500d910c6b7)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c
drivers/net/tg3.h