[PATCH v2 1/2] usb: gadget dbgp: Fix endpoint config after USB disconnect

2014-11-03 Thread Kyösti Mälkki
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.mal...@gmail.com --- drivers/usb/gadget/legacy/dbgp.c | 26

Re: [PATCH v2 2/2] usb: gadget serial: Honour termios CLOCAL on disconnect

2014-11-03 Thread Kyösti Mälkki
On 11/03/2014 05:33 PM, Peter Hurley wrote: Hi Kyösti, On 11/03/2014 10:18 AM, Kyösti Mälkki wrote: There are applications where it is desirable to not hangup ttyGS* when USB disconnect is detected. USB host side of communication may power-cycle periodically or there may be the actual need

Re: [PATCH 2/2] usb: gadget serial: Honour termios CLOCAL on disconnect

2014-10-27 Thread Kyösti Mälkki
On 10/27/2014 02:31 PM, Sergei Shtylyov wrote: Hello. On 10/26/2014 9:01 PM, Kyösti Mälkki wrote: There are applications where it is desirable to not hangup ttyGS* when USB disconnect is detected. USB host side of communication may power-cycle periodically or there may be the actual need

Re: [PATCH 1/2] usb: gadget dbgp: Fix endpoint config after USB disconnect

2014-10-27 Thread Kyösti Mälkki
On 10/27/2014 03:35 PM, Felipe Balbi wrote: Hi, On Sun, Oct 26, 2014 at 08:01:29PM +0200, Kyösti Mälkki wrote: SET_FEATURE request for DEBUG_MODE only worked the first time after module initialisation. On USB host reset or cable disconnect gserial_disconnect() clears the associations

Re: [PATCH 2/2] usb: gadget serial: Honour termios CLOCAL on disconnect

2014-10-27 Thread Kyösti Mälkki
On 10/27/2014 03:38 PM, Felipe Balbi wrote: Hi, On Sun, Oct 26, 2014 at 08:01:30PM +0200, Kyösti Mälkki wrote: There are applications where it is desirable to not hangup ttyGS* when USB disconnect is detected. USB host side of communication may power-cycle periodically or there may

Re: [PATCH 1/2] usb: gadget dbgp: Fix endpoint config after USB disconnect

2014-10-27 Thread Kyösti Mälkki
On 10/27/2014 05:22 PM, Felipe Balbi wrote: On Mon, Oct 27, 2014 at 05:15:16PM +0200, Kyösti Mälkki wrote: On 10/27/2014 03:35 PM, Felipe Balbi wrote: Hi, On Sun, Oct 26, 2014 at 08:01:29PM +0200, Kyösti Mälkki wrote: SET_FEATURE request for DEBUG_MODE only worked the first time after module

usb: gadget: Fixes to receive from USB EHCI Debug

2014-10-26 Thread Kyösti Mälkki
USB gadget driver dbgp can be used as an EHCI debug dongle in replacement for product like Net20DC. With it one can receive early kernel messages from remote targets over USB. See parameter earlyprintk=dbgp for target kernel requirements and configuration. The two patches are required for dbgp

[PATCH 2/2] usb: gadget serial: Honour termios CLOCAL on disconnect

2014-10-26 Thread Kyösti Mälkki
are comparable to loss of Carrier Detect of conventional UARTs. With the change, if ttyGS* has termios CLOCAL flag set, disconnect on USB does not hangup the TTY. Signed-off-by: Kyösti Mälkki kyosti.mal...@gmail.com --- drivers/usb/gadget/function/u_serial.c | 9 +++-- 1 file changed, 7 insertions(+), 2

[PATCH 1/2] usb: gadget dbgp: Fix endpoint config after USB disconnect

2014-10-26 Thread Kyösti Mälkki
is to be treated as if it were a SET_CONFIGURATION request. Redo endpoint configuration on this request. Code has assumption that endpoint mapping remains unchanged from what was previously returned as a GET_DESCRIPTOR DT_DEBUG response. Signed-off-by: Kyösti Mälkki kyosti.mal...@gmail.com --- drivers

Re: [EHCI Debug Port] Linux fails to setup EHCI debug port

2014-04-24 Thread Kyösti Mälkki
Sorry for the late response, as I do not follow linux-usb list very closely. I have discussed recent Intel chipsets and EHCI debug in some detail on the coreboot mailing list [1]. As for the discussion [2] that took place here in February, I noticed you tried with early_printk=dbgp which

EHCI debug device gadgets and host

2013-07-01 Thread Kyösti Mälkki
Hi Is someone actively working on or maintaining the EHCI debug device gadget driver? I would like to see some fixes and/or improvements to it but do not know the gadget framework and some of the required hardware is not yet on my desk. So the incomplete report here is from a friends'