]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerFelipe Balbi <balbi@kernel.org>
Wed, 3 Feb 2016 21:58:20 +0000 (23:58 +0200)
commitac02d452d0464228b204f93c850960b6b8f19280
treed60be6849e03b3c3f119d3259cab523c62e46bf9
parent39bbd0ad5c16d8b574a1b4f91bf995a173df6414
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>
drivers/usb/dwc3/gadget.c