diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-11-03 17:18:04 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-10 17:19:34 -0600 |
commit | 6876d58f2f0548ce130b388c323eed17dc5d8689 (patch) | |
tree | 6b2a670addb8cae0d1f31318db3e9fbd432ef630 /drivers/usb/dwc3 | |
parent | phy: twl4030: Fix build breakage (diff) | |
download | linux-dev-6876d58f2f0548ce130b388c323eed17dc5d8689.tar.xz linux-dev-6876d58f2f0548ce130b388c323eed17dc5d8689.zip |
usb: gadget: dbgp: Fix endpoint config after USB disconnect
SET_FEATURE request with DEBUG_MODE only worked the first time after module
initialisation. Per the USB 2.0 debug device specification, said request
is to be treated as if it were a SET_CONFIGURATION request, i.e. endpoint
must be re-configured.
As configure_endpoints() may now get called multiple times, move it outside
__init and move serial_alloc_tty() call into __init.
Code has assumption that endpoint mapping remains unchanged with consecutive
calls of configure_endpoints().
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions