net/davinci_cpdma: don't check for jiffies with interrupts
authorSebastian Siewior <bigeasy@linutronix.de>
Tue, 23 Apr 2013 07:31:35 +0000 (07:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 08:11:49 +0000 (04:11 -0400)
commit817f6d1a13754b043e1a6c1cb713763022860689
tree80488896dae65d080e4463f2bf79efb8a0f9c617
parent2bac7cb316d1327c457a715bac5fd56bbc42bc63
net/davinci_cpdma: don't check for jiffies with interrupts

__cpdma_chan_process() holds the lock with interrupts off (and its
caller as well), same goes for cpdma_ctlr_start(). With interrupts off,
jiffies will not make any progress and if the wait condition never gets
true we wait for ever.
Tgis patch adds a a simple udelay and counting down attempt.

Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.c