From: Nate Case Date: Tue, 29 Jan 2008 16:05:09 +0000 (-0600) Subject: PHYLIB: Locking fixes for PHY I/O potentially sleeping X-Git-Tag: v2.6.25-rc1~1065^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35b5f6b1a82b5c586e0b24c711dc6ba944e88ef1;p=pandora-kernel.git PHYLIB: Locking fixes for PHY I/O potentially sleeping PHY read/write functions can potentially sleep (e.g., a PHY accessed via I2C). The following changes were made to account for this: * Change spin locks to mutex locks * Add a BUG_ON() to phy_read() phy_write() to warn against calling them from an interrupt context. * Use work queue for PHY state machine handling since it can potentially sleep * Change phydev lock from spinlock to mutex Signed-off-by: Nate Case Acked-by: Andy Fleming Signed-off-by: Jeff Garzik Signed-off-by: David S. Miller --- Reading git-diff-tree failed