On Mon, Aug 30, 2004 at 01:56:57AM -0500, Al Borchers wrote:
> Greg --
> 
> Here is an additional patch for pl2303 in 2.6.9-rc1,
> to be applied after my previous circular buffer patch.
> This patch waits for the buffer to drain on close and
> then clears the buffer.  In addition to the obvious
> features, this also fixes a bug where closing a port
> with a full buffer would accidentally disable writes
> when the port was re-opened.
> 
> The original pl2303 could lose data that was still going
> out the port on close, and even this patch only solves
> the problem completely for data rates of 1200 bps and
> above.
> 
> Waiting for data to drain from the circular buffer is
> easy, but the problem is waiting for data to drain from
> the 256 byte hardware buffer on the device.  I don't know
> how much data is in the hardware buffer, so I just wait
> long enough for a potentially full hardware buffer to
> drain, but I don't want to wait that long for low data
> rates if the buffer isn't full.  There is probably some
> way to query the pl2303 to find out how much data is in
> its hardware buffer, maybe snooping would reveal that.
> 
> Anyway, if you take the circular buffer patch, please
> apply this one, too.

Applied, thanks.

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to