usb: musb: core: Convert babble recover work to delayed work
authorGeorge Cherian <george.cherian@ti.com>
Wed, 16 Jul 2014 12:52:10 +0000 (18:22 +0530)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Jul 2014 14:59:54 +0000 (09:59 -0500)
commit675ae7631150a54eac81806ccb1bf16aba2bead8
tree73ff41dd438d3c34ba1a70114e97b79afa26fbf2
parent97b4129e0562c74e6d75ff081e93202c71aecaa3
usb: musb: core: Convert babble recover work to delayed work

During babble condition both first disconnect of devices are
initiated. Make sure MUSB controller is reset and re-initialized
after all disconnects.

To acheive this schedule a delayed work for babble recovery.

While at that convert udelay to usleep_range.
Refer Documentation/timers/timers-howto.txt

Signed-off-by: George Cherian <george.cherian@ti.com>
Tested-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h