]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/dm9000.c
DM9000: Ensure spinlock held whilst accessing EEPROM registers
authorBen Dooks <ben-linux@fluff.org>
Tue, 5 Feb 2008 00:02:14 +0000 (00:02 +0000)
committerJeff Garzik <jeff@garzik.org>
Mon, 11 Feb 2008 16:06:31 +0000 (11:06 -0500)
commit621ddcb0461baee26a5e7c86a76938f0aa83dec1
tree40fed02f95849d05370ee7bb59df63852ee13fe1
parent3927f1c88efc25b2972c8cbd7ed10d5f1b88b52a
DM9000: Ensure spinlock held whilst accessing EEPROM registers

Ensure we hold the spinlock whilst the registers and being
modified even though we hold the overall lock. This should
protect against an interrupt happening whilst we are using
the device.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/dm9000.c