]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
mv643xx_eth: switch ->phy_lock from a spinlock to a mutex
authorLennert Buytenhek <buytenh@wantstofly.org>
Sun, 24 Aug 2008 03:41:09 +0000 (05:41 +0200)
committerLennert Buytenhek <buytenh@marvell.com>
Fri, 5 Sep 2008 04:33:57 +0000 (06:33 +0200)
commit2b3ba0e3ea3aa9383d38cf95fabd24ca35483784
treeeebac8125ec4b2d088c179ee211e6cd96a1036fa
parent9da7874575468ad3b126d1b9197b6ae387950bb4
mv643xx_eth: switch ->phy_lock from a spinlock to a mutex

Since commit 81600eea98789da09a32de69ca9d3be8b9503c54 ("mv643xx_eth:
use auto phy polling for configuring (R)(G)MII interface"),
mv643xx_eth no longer does SMI accesses from interrupt context.  The
only other callers that do SMI accesses all do them from process
context, which means we can switch the PHY lock from a spinlock to a
mutex, and get rid of the extra locking in some ethtool methods.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
drivers/net/mv643xx_eth.c