]> git.hungrycats.org Git - linux/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)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 12 Sep 2016 13:33:21 +0000 (09:33 -0400)
commitb1918a087335a8ed6c8f1f090e3a41a62f8a3818
treeb83926a88caada20327ecd5df8c534678533fa16
parent1898b62966e8c8d979278c66a977ba0fc3a2d128
usb: chipidea: udc: don't touch DP when controller is in host mode

[ Upstream commit c4e94174983a86c935be1537a73e496b778b0287 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/usb/chipidea/udc.c