diff options
author | Felipe Balbi <balbi@ti.com> | 2015-06-02 13:03:36 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-07-06 12:34:07 -0500 |
commit | be9d39881fc4fa39a64b6eed6bab5d9ee5125344 (patch) | |
tree | be10dce2222dcfd16d6d0bed80fb410a53a9a147 /drivers/usb/dwc2 | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) |
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: ae44df2e21b5 (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>
Diffstat (limited to 'drivers/usb/dwc2')
0 files changed, 0 insertions, 0 deletions