]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd13165b2f3f5455fbfe8cd0a317f4b7b6303c8b3
tree352061f2bb21d7c4ea8b2fa7c6f288b815a9abdd
parent205688bb6b43c17389f50221460cc93174201d0e
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