]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:30:54 +0000 (13:30 -0700)
commit3e3c8c718ecf07b641b4d21a5d5ba259911a731b
tree5e0347f89b88101690e65dce78547b9403722c86
parentc53f89ac7b1b89a7132e59a1a8dc548eaeb10556
smsc911x: Add spinlocks around registers access

commit 492c5d943d6a04b124ba3a719dc746dc36b14cfb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/smsc911x.c