---------- Forwarded message ----------
From: Chetan Karia <[EMAIL PROTECTED]>
Date: 20 Feb 2008 10:35
Subject: Question regarding usb-serial based driver.
To: linux-usb@vger.kernel.org


Hello,

 I am kernel newbie and I have a question about usb serial driver. I
 have a usb to serial driver which exposes 3 virtual serial ports
 ttyUSB0, ttyUSB1 and ttyUSB2. The endpoint to virtual serial port
 mapping is like this
         ep0 ==> ttyUSB0
        ep1 ==> ttyUSB1
        ep2 ==> ttyUSB2.

 All I want to do is create another virtual serial port ttyUSB3 (easy)
 and setup its endpoint address (bulk in and bulk out) to same as
 ttyUSB1 that is ep1. I do this in attach function of the driver and I
 want to know will there be any race condition if ttyUSB1 and ttyUSB3
 are used simultaneously? Is there any way to overcome that race
 condition or its simply not correct way to go.

 My sole intention for doing that is ttyUSB1 and ttyUSB3 should be able
 to read/write from/to same endpoint (ep1) concurrently. Is that
 possible?

 I am using kernel version 2.6.22. There are no interrupt endpoints,
 only 3 bulk in and 3 bulk out endpoints.

 Thank you for your time and looking forward to your reply,

 Chetan Karia
-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to