Re: g_serial and cdc_acm communications

2012-07-12 Thread Dipen Patel
ied following patches. - Workqueue patch - http://comments.gmane.org/gmane.linux.usb.general/26772 - POSTPONE_FREE_LAST_DTD patch - http://patchwork.ozlabs.org/patch/157845/ Appreciate any help on this. Regards, Dipen Patel -- To unsubscribe from this list: send the line "unsubscribe linux

Re: g_serial and cdc_acm communications

2012-07-12 Thread Dipen Patel
Hi, Resolved this by fixing a bug in device side transmit routine. Anyways thank you guys. This was the only post I found on net with exactly my problem. Regards, Dipen Patel -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message

Re: g_serial and cdc_acm communications

2012-07-13 Thread Dipen Patel
good workaround. In cdev structure I have added input dev and whenever set_config is called I generate input event at the end of function. My application looks for this event and if received it reinitializes device. Regards, Dipen Patel -- To unsubscribe from this list: send the line

Re: g_serial and cdc_acm communications

2012-07-13 Thread Dipen Patel
e or set_config > occurs? Read will return EAGAIN if set_config is called and I try to read. But I never get data untill I close and reopen /dev/ttyGS0 Regards, Dipen Patel -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: g_serial and cdc_acm communications

2012-07-13 Thread Dipen Patel
ice is connected to Host then for future unplug/plug or even SET_CONFIGURATION requests it should just do reset so calling gserial_disconnect() and then gserial_connect(). Correct me if I am wrong. Regards, Dipen Patel -- To unsubscribe from this list: send the line "unsubscribe linux-usb

Re: g_serial and cdc_acm communications

2012-07-23 Thread Dipen Patel
Can anyone help me with this? How my application should detect device plugout/plugin and SET_CONFIGURATION events? Is my current solution of generating input event on SET_CONFIGURATION call for application to close and reopen device node is Okay? Appreciate any help on this. Regards, Dipen

Re: g_serial and cdc_acm communications

2012-07-24 Thread Dipen Patel
generating input event from g_serial driver. What i don't understand is that why device application need to reset port which is already open. i.e. when set_alt() is called why it is calling gserial_connect() again instead of using previously opened tty port. Regards, Dipen Patel

Re: g_serial and cdc_acm communications

2012-07-24 Thread Dipen Patel
called gserial_connect(), so SIGHUP is not generated. But why acm_set_alt() does not do gserial_disconnect() before calling gserial_connect()? Regards, Dipen Patel -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kerne