]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: host: rely on port_mode to call musb_start()
authorFelipe Balbi <balbi@ti.com>
Tue, 2 Jun 2015 18:03:36 +0000 (13:03 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 6 Jul 2015 17:34:07 +0000 (12:34 -0500)
commit87e2642e41c1caca666db9cbfaa0203cfc04b0b3
treebe10dce2222dcfd16d6d0bed80fb410a53a9a147
parent7080a36663ec94f7ed976e9e162c15cc4a03bc56
usb: musb: host: rely on port_mode to call musb_start()

Currently, we're calling musb_start() twice for DRD ports
in some situations. This has been observed to cause enumeration
issues after suspend/resume cycles with AM335x.

In order to fix the problem, we just have to fix the check
on musb_has_gadget() so that it only returns true if
current mode is Host and ignore the fact that we have or
not a gadget driver loaded.

Fixes: 585660a29ac8 (usb: musb: call musb_start() only once in OTG mode)
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: <stable@vger.kernel.org> # v3.11+
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_virthub.c