Re: TTY loosing data with u_serial gadget

From: Felipe Balbi
Date: Tue Mar 22 2011 - 04:54:04 EST


On Mon, Mar 21, 2011 at 11:32:57AM +0200, Felipe Balbi wrote:
> On Fri, Mar 18, 2011 at 06:06:57PM +0000, Alan Cox wrote:
> > > I had the same problem while I was working at Nokia developing the N900.
> > > I even sent a patch (twice) with Alan Cox on the loop but nothing has
> > > happened.
> >
> > http://lkml.indiana.edu/hypermail/linux/kernel/0910.0/02347.html
> >
> > is I assume the thread you are talking about - which ground to a halt
> > without actually figuring out what you were seeing and what was really
> > going on.
> >
> > http://permalink.gmane.org/gmane.linux.usb.general/28976
> >
> > would be the second generation one which was somewhat longer after I
> > ceased to be tty maintainer so I can't really say it never got upstream.
> >
> > I still think its the right thing to do, so perhaps it's worth reposting
> > it, especially if it fixes this case too.
>
> Ok, I'll update that patch and re-send. I'll compile test on x86 and
> boot test on an ARM box, so it would be cool to have Acks from several
> people before applying, just in case.

Patch attached, please give it a good round of test as I don't have how
to exercise all line disciplines. I ran 100 randconfigs over night and
no warnings or erros on that area, at least not that I could see (so
many warning while compiling the kernel :-( )

--
balbi