lkml.org 
[lkml]   [2009]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] USB: ftdi_sio: Fix read regression in 2.6.31.
On Sat, 19 Sep 2009, Johan Hovold wrote:

> Use ASYNCB_INITIALIZED to determine when to stop reading.
>
> Since 335f8514f200e63d689113d29cb7253a5c282967 port count can no longer
> be used to determine when to stop reading from the device as it can be
> zero when the first read callbacks are made (see tty_port_block_til_read
> where port count is temporarily decremented during serial_open).
>
> This fixes the regression where reads fail after connecting the device
> and opening the port more than once (reads usually succeed after the
> first open due to the device latency timer then being set to the default
> 16ms rather than 1ms).

This is a good change. It should be made in all the serial drivers,
not just ftdi_sio. How'd you like to submit patches for all the rest
of the drivers?

Alan Stern



\
 
 \ /
  Last update: 2009-09-19 18:23    [W:0.039 / U:0.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site