]> 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)
commitfee013fb9db259fa7ed301a6187526cd4c5064dc
tree21bf19658f1997346780e5ed5fd72093f2c57107
parent05e4d3c736d0dcd55cb65f286324c787070cdad5
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