diff options
author | George Cherian <george.cherian@ti.com> | 2014-07-16 18:22:10 +0530 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-07-16 09:59:54 -0500 |
commit | 675ae7631150a54eac81806ccb1bf16aba2bead8 (patch) | |
tree | 73ff41dd438d3c34ba1a70114e97b79afa26fbf2 /drivers/usb/musb/musb_core.h | |
parent | 97b4129e0562c74e6d75ff081e93202c71aecaa3 (diff) | |
download | linux-675ae7631150a54eac81806ccb1bf16aba2bead8.tar.gz linux-675ae7631150a54eac81806ccb1bf16aba2bead8.tar.bz2 linux-675ae7631150a54eac81806ccb1bf16aba2bead8.zip |
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>
Diffstat (limited to 'drivers/usb/musb/musb_core.h')
-rw-r--r-- | drivers/usb/musb/musb_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index d155a156f240..9241025f6965 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h @@ -297,7 +297,7 @@ struct musb { irqreturn_t (*isr)(int, void *); struct work_struct irq_work; - struct work_struct recover_work; + struct delayed_work recover_work; struct delayed_work deassert_reset_work; struct delayed_work finish_resume_work; u16 hwvers; |