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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Sep 2016 06:32:44 +0000 (08:32 +0200)
commit8136b595bfa36a09a6e1b357f280d368df3d1cc5
tree883c9b5a3ad778489931f895c45db7998f57d32f
parent5ab968f27aee23f03ddd0401a77c2ba81dc73ad0
usb: chipidea: udc: don't touch DP when controller is in host mode

commit c4e94174983a86c935be1537a73e496b778b0287 upstream.

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.

Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c