DM9000: Add mutex to protect access
authorBen Dooks <ben-linux@fluff.org>
Tue, 5 Feb 2008 00:02:10 +0000 (00:02 +0000)
committerJeff Garzik <jeff@garzik.org>
Mon, 11 Feb 2008 16:06:28 +0000 (11:06 -0500)
commit9a2f037cdbe8409c5ff92e8dce5fcdfe2ebb2084
treee3b9570b76c739e9aa1f1a63fc722484b658bdae
parent86c62fab5aafe33d033d2f616ba8be0527e1c286
DM9000: Add mutex to protect access

Add a mutex to serialise access to the chip functions from
entries such as the ethtool and the MII code. This should
reduce the amount of time the spinlock is held to protect
the address register.

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