Skip to content
Commit 58237983 authored by Andrew Ruder's avatar Andrew Ruder Committed by David S. Miller
Browse files

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: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aac6d022
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment