From: Felipe Balbi <balbi@ti.com>
To: Stefan Bigler <stefan.bigler@keymile.com>
Cc: Greg KH <greg@kroah.com>,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: TTY loosing data with u_serial gadget
Date: Fri, 18 Mar 2011 19:08:02 +0200 [thread overview]
Message-ID: <20110318170801.GA2857@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <4D8389EC.5030704@keymile.com>
Hi,
(please don't top-post)
On Fri, Mar 18, 2011 at 05:35:56PM +0100, Stefan Bigler wrote:
> Thanks for your quick answer. Meanwhile we ported our board to 2.6.38.
> We recognize the same problem again.
> I had also a look at the relevant fixes, a lot is done but I could not find
> the required protection of the attribute receive_room.
>
> I added a printk in case of failure were receive_room shows more
> space that is really available in the queue and also used.
>
> The printk is attached below and also the log.
>
> Regards
> Stefan
>
>
> Log:
> flush_to_ldisc, receive_room to small count=201, receive_room=287,
> real_room=0
> flush_to_ldisc, receive_room to small count=225, receive_room=1031,
> real_room=0
> flush_to_ldisc, receive_room to small count=33, receive_room=4095,
> real_room=0
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. The patch might still be floating on the archives but
essentially it would make ->receive_buf() return the amount of received
bytes (as IMHO it should be done).
--
balbi
next prev parent reply other threads:[~2011-03-18 17:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-16 20:47 Stefan Bigler
2011-03-17 0:04 ` Greg KH
2011-03-18 16:35 ` Stefan Bigler
2011-03-18 17:08 ` Felipe Balbi [this message]
2011-03-18 18:06 ` Alan Cox
2011-03-21 9:32 ` Felipe Balbi
2011-03-22 8:53 ` Felipe Balbi
2011-03-22 11:04 ` Alan Cox
2011-03-22 17:01 ` Greg KH
2011-03-24 12:07 ` Toby Gray
2011-03-24 12:37 ` Felipe Balbi
2011-03-24 12:51 ` Toby Gray
2011-03-24 13:00 ` Felipe Balbi
2011-03-24 15:40 ` Stefan Bigler
2011-03-24 16:15 ` Toby Gray
2011-03-25 11:02 ` Felipe Balbi
2011-03-18 21:46 ` Stefan Bigler
2011-03-18 18:07 ` Alan Cox
2011-03-18 21:15 ` Stefan Bigler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110318170801.GA2857@legolas.emea.dhcp.ti.com \
--to=balbi@ti.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stefan.bigler@keymile.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®