From: Kyösti Mälkki Date: Mon, 3 Nov 2014 15:18:04 +0000 (+0200) Subject: usb: gadget: dbgp: Fix endpoint config after USB disconnect X-Git-Tag: omap-for-v3.19/fixes-rc1~87^2~32^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6876d58f2f0548ce130b388c323eed17dc5d8689;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed