From: Andrew Ruder Date: Wed, 4 Jun 2014 22:28:49 +0000 (-0500) Subject: dm9000: avoid sleeping in dm9000_timeout callback X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~64^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=582379839bbdb76f2f0ad956a39f920cfd84fcea;p=pandora-kernel.git dm9000: avoid sleeping in dm9000_timeout callback On the DM9000B, dm9000_msleep() is called during the dm9000_timeout() routine. Since dm9000_timeout() holds the main spinlock through the entire routine, mdelay() needs to be used rather than msleep(). Furthermore, the mutex_lock()/mutex_unlock() should be avoided so as to not sleep with spinlocks held. Signed-off-by: Andrew Ruder Signed-off-by: David S. Miller --- Reading git-diff-tree failed