]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Create critical section around GPIO toggling
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Jul 2011 09:27:31 +0000 (09:27 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 15 May 2012 08:32:25 +0000 (16:32 +0800)
commitf77f1fc20ca8b48ba80b93654459cff6573ba5c6
tree830281d8bc24ed04abae5f5854aeac3f2498c28a
parente92e49edc6746f334acb9c1a7516d27cbe4c7468
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>
(cherry picked from commit 6f5c8f8317d37045ffc7ea21dab8319a53c1ae57)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c
drivers/net/tg3.h