Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6876d58f authored by Kyösti Mälkki's avatar Kyösti Mälkki Committed by Felipe Balbi
Browse files

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: default avatarKyösti Mälkki <kyosti.malkki@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 8b9ca276
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment