diff options
author | Bob Liu <lliubbo@gmail.com> | 2010-10-23 10:12:00 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2010-11-05 12:12:22 (GMT) |
commit | 68f64714dc35a515a3064b300729e7809bcdd0e0 (patch) | |
tree | 114f55a2d481851b2ffa9be6e3b107e1d0c4629b /drivers/usb | |
parent | 1e393c6eece048052d4131ec4dad3b98e35a98e2 (diff) | |
download | linux-fsl-qoriq-68f64714dc35a515a3064b300729e7809bcdd0e0.tar.xz |
USB: musb: blackfin: fix dynamic device<->host changing
We need to restart the timer in order to recognize USB devices in
host-only mode.
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/blackfin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index 32cc6d9..ade45a2 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c @@ -171,8 +171,9 @@ static irqreturn_t blackfin_interrupt(int irq, void *__hci) } /* Start sampling ID pin, when plug is removed from MUSB */ - if (is_otg_enabled(musb) && (musb->xceiv->state == OTG_STATE_B_IDLE - || musb->xceiv->state == OTG_STATE_A_WAIT_BCON)) { + if ((is_otg_enabled(musb) && (musb->xceiv->state == OTG_STATE_B_IDLE + || musb->xceiv->state == OTG_STATE_A_WAIT_BCON)) || + (musb->int_usb & MUSB_INTR_DISCONNECT && is_host_active(musb))) { mod_timer(&musb_conn_timer, jiffies + TIMER_DELAY); musb->a_wait_bcon = TIMER_DELAY; } |