]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: re-factor USB2 test mode to a function
authorFelipe Balbi <balbi@ti.com>
Mon, 2 Jan 2012 16:25:43 +0000 (18:25 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 6 Feb 2012 09:48:19 +0000 (11:48 +0200)
commit42003d0a685ff93c984def598dd70319c59e192f
tree65ca241b579b0938a1acf6fe512e11c3efeebc2d
parent5c4f9418d44bb5dea9aa3f015ada895716303915
usb: dwc3: gadget: re-factor USB2 test mode to a function

There are some situations were we might need to
enable USB Test Modes without having access to a
Host stack. In such situations we cannot rely
solely on USB Control Messages to enable test
features.

For those cases, we will also allow test mode
to be enabled via debugfs and this patch is a
preparation for that.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/gadget.h