]> git.baikalelectronics.ru Git - kernel.git/commit
smsc911x: Add spinlocks around registers access
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 19 Jul 2010 20:36:21 +0000 (13:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jul 2010 20:36:21 +0000 (13:36 -0700)
commita61999564661ff11500a9381fc8b1848032c7116
treeffaf0cac0c39af113bba21b9cb459accd64c5de8
parent17c309273cbb107cd6f7d2967632211da09e0b74
smsc911x: Add spinlocks around registers access

On SMP systems, the SMSC911x registers may be accessed by multiple CPUs
and this seems to put the chip in an inconsistent state. The patch adds
spinlocks to the smsc911x_reg_read, smsc911x_reg_write,
smsc911x_rx_readfifo and smsc911x_tx_writefifo functions.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smsc911x.c