aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_core.h
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@ti.com>2014-07-16 18:22:10 +0530
committerFelipe Balbi <balbi@ti.com>2014-07-16 09:59:54 -0500
commit675ae7631150a54eac81806ccb1bf16aba2bead8 (patch)
tree73ff41dd438d3c34ba1a70114e97b79afa26fbf2 /drivers/usb/musb/musb_core.h
parentusb: musb: core: Handle Babble condition only in HOST mode (diff)
downloadlinux-dev-675ae7631150a54eac81806ccb1bf16aba2bead8.tar.xz
linux-dev-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.h2
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;