usb: chipidea: udc: don't touch DP when controller is in host mode
authorLi Jun <jun.li@nxp.com>
Tue, 16 Aug 2016 11:19:11 +0000 (19:19 +0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 19 Aug 2016 01:27:07 +0000 (09:27 +0800)
commitc4e94174983a86c935be1537a73e496b778b0287
tree352061f2bb21d7c4ea8b2fa7c6f288b815a9abdd
parentf1f6d9a8b540df22b87a5bf6bc104edaade81f47
usb: chipidea: udc: don't touch DP when controller is in host mode

When the controller is configured to be dual role and it's in host mode,
if bind udc and gadgt driver, those gadget operations will do gadget
disconnect and finally pull down DP line, which will break host function.

Cc: <stable@vger.kernel.org> # 4.1+
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/udc.c