aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/efx.c
diff options
context:
space:
mode:
authorSteve Hodgson <shodgson@solarflare.com>2009-11-28 00:34:44 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-29 02:58:51 -0500
commitab86746175a5e1379abb9c7c38522af4d3176f57 (patch)
tree785e6540facd6807909c24e827a61a1d441fc5bc /drivers/net/sfc/efx.c
parent47c3d19f60da7cc018781744b1ffb3b557373e7f (diff)
sfc: Replace MDIO spinlock with mutex
We never use MDIO in atomic context, so we don't need to spin. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r--drivers/net/sfc/efx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index b5a7e91590dc..6338ad8dbfbb 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -1922,7 +1922,7 @@ static int efx_init_struct(struct efx_nic *efx, struct efx_nic_type *type,
1922 /* Initialise common structures */ 1922 /* Initialise common structures */
1923 memset(efx, 0, sizeof(*efx)); 1923 memset(efx, 0, sizeof(*efx));
1924 spin_lock_init(&efx->biu_lock); 1924 spin_lock_init(&efx->biu_lock);
1925 spin_lock_init(&efx->phy_lock); 1925 mutex_init(&efx->mdio_lock);
1926 mutex_init(&efx->spi_lock); 1926 mutex_init(&efx->spi_lock);
1927 INIT_WORK(&efx->reset_work, efx_reset_work); 1927 INIT_WORK(&efx->reset_work, efx_reset_work);
1928 INIT_DELAYED_WORK(&efx->monitor_work, efx_monitor); 1928 INIT_DELAYED_WORK(&efx->monitor_work, efx_monitor);