smsc911x: Add spinlocks around registers access
commit21c6c9de112c0ac07015d8e705fb4a7f7ef9d023
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 19 Jul 2010 20:36:21 +0000 (19 13:36 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:19:39 +0000 (13 13:19 -0700)
treeff0937d19a04b6d77d9e04e54a036cd6bb2eb145
parente13fd0a2324283b00131c2e7a91bacd06e6f6810
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