From: NeilBrown Date: Mon, 13 Aug 2012 02:32:58 +0000 (+1000) Subject: usb: musb: omap2430: don't loop indefinitely in interrupt. X-Git-Tag: sz_154~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da8dbefb91feb721acceed4cd82719bfa5b379bc;p=pandora-kernel.git usb: musb: omap2430: don't loop indefinitely in interrupt. When called during resume_irqs, omap2430_musb_set_vbus() is run with interrupts disabled, In that case 'jiffies' never changes so the loop can loop forever. So impose a maximum loop count and add an 'mdelay' to ensure we wait a reasonable amount of time for bit to be cleared. This fixes a hang on resume. Signed-of-by: NeilBrown Signed-off-by: Felipe Balbi Conflicts: drivers/usb/musb/omap2430.c --- Reading git-diff-tree failed