usb: musb: dsps: polling ID pin status only in otg mode
authorBin Liu <b-liu@ti.com>
Wed, 30 Oct 2013 14:38:23 +0000 (09:38 -0500)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 Nov 2013 17:44:40 +0000 (11:44 -0600)
commit5ace3d00fa11bb9ec5e1cc02805ac27201f27e61
tree714f6498e9c8d309326793e57f558480f92f8fd0
parente1d2e31975e1e3a31ac592d5b1c5cb5d655b3f4e
usb: musb: dsps: polling ID pin status only in otg mode

Only start the otg_timer in dual role mode; otherwise in peripheral mode
when musb is disconnected from the host port, otg_timer starts and
continuously toggles the session, which causes VBUS pulse.

Signed-off-by: Bin Liu <b-liu@ti.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c