smsc911x: Add spinlocks around registers access
commit35394fdc1277b92ebd0d1a205f9a3e783b794c26
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:27:23 +0000 (13 13:27 -0700)
treefedacd75f160650ccda3005824b8d678dc785aa4
parente720aace59112a58fcdbb95234fd61cba2843fe2
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