UPSTREAM: usb: dwc3: gadget: set the OTG flag in dwc3 gadget driver.
authorJianqiang Tang <jianqiang.tang@intel.com>
Wed, 20 Jan 2016 06:09:39 +0000 (14:09 +0800)
committerWu Liang feng <wulf@rock-chips.com>
Sun, 6 Mar 2016 13:41:09 +0000 (21:41 +0800)
commit6c7a65909832466df01ec40a14658c7521dd3393
treef60d00064707accdcd98f7c65f50e90c73c84c1a
parent6b51105e1c0293254bffa3c3e5c023cf8f837781
UPSTREAM: usb: dwc3: gadget: set the OTG flag in dwc3 gadget driver.

This patch is needed in order to pass one test case
defined in the OTG Automated Compliance Test specification.

Specification location:
http://www.usb.org/developers/onthego/otgeh_compliance_plan_1_2.pdf

This test case uses PET Tool, and PET Tool is one USB hardware
equipment provided by MQP Electronics.

Test case id is 6.8.3 B-UUT Bypass Capacitance.

We must set this otg flag in order to be able to return OTG
descriptor during enumeration, otherwise this test case with
failed with below error: "Get OTG descriptor request stalled".

Signed-off-by: Jianqiang Tang <jianqiang.tang@intel.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
(cherry picked from commit 6a4290cc28be12d72d50644bd4bda1aede37cd41)

Change-Id: If264c2a878ee8520edc57876ab2325dce4ca869e
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/gadget.c