summaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/unusual_sddr55.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-08-13 12:32:58 +1000
committerFelipe Balbi <balbi@ti.com>2012-08-14 11:03:00 +0300
commit12a19b5f836c1a1b838e668f9aa804d017d8c58b (patch)
treed57cc77e5cb43656d9388b70d53b0628c8406c1a /drivers/usb/storage/unusual_sddr55.h
parent07a67bbb95ea7977846bd851dab5f4f2be8e488c (diff)
downloadtalos-op-linux-12a19b5f836c1a1b838e668f9aa804d017d8c58b.tar.gz
talos-op-linux-12a19b5f836c1a1b838e668f9aa804d017d8c58b.zip
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 <neilb@suse.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/storage/unusual_sddr55.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud