]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 15:41:59 +0000 (08:41 -0700)
commit71294028270c6f01e4da62f42b18081054ee25b2
tree21bf19658f1997346780e5ed5fd72093f2c57107
parent78f3f19389c8974dec9f8761ecd39bae9cce2246
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>
drivers/net/tg3.c
drivers/net/tg3.h