All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: clameter@lameter.com, linux-kernel@vger.kernel.org
Cc: Drew Bertola <drew@drewb.com>
Subject: Re: USB broken in 2.4.4? Serial Ricochet works, USB performance sucks.
Date: Thu, 10 May 2001 21:39:30 -0700	[thread overview]
Message-ID: <20010510213930.A8483@kroah.com> (raw)
In-Reply-To: <20010509222456.A4960@kroah.com> <Pine.LNX.4.10.10105092324130.30061-100000@melchi.fuller.edu> <20010510200750.A29230@drewb.com>
In-Reply-To: <20010510200750.A29230@drewb.com>; from drew@drewb.com on Thu, May 10, 2001 at 08:07:50PM -0700

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]

On Thu, May 10, 2001 at 08:07:50PM -0700, Drew Bertola wrote:
> 
> Joey Hess had a problem similar to what you described, though he noticed
> it while using the pcmcia ricochet modem.  He passed along this patch:

Doh!  I've only fixed this same kind of problem about 3 different times
in the usb-serial drivers.  clameter, could you try the attached patch
against 2.4.4 and see if that fixes the MTU issue for you?

Thanks Drew for reminding me of this.

greg k-h


[-- Attachment #2: usb-acm-2.4.4.patch --]
[-- Type: text/plain, Size: 620 bytes --]

--- linux-2.4.4/drivers/usb/acm.c	Fri Feb 16 16:06:17 2001
+++ linux-2.4/drivers/usb/acm.c	Thu May 10 21:29:29 2001
@@ -233,8 +240,14 @@
 		dbg("nonzero read bulk status received: %d", urb->status);
 
 	if (!urb->status & !acm->throttle)  {
-		for (i = 0; i < urb->actual_length && !acm->throttle; i++)
+		for (i = 0; i < urb->actual_length && !acm->throttle; i++) {
+			/* if we insert more than TTY_FLIPBUF_SIZE characters, 
+			 * we drop them. */
+			if (tty->flip.count >= TTY_FLIPBUF_SIZE) {
+				tty_flip_buffer_push(tty);
+			}
 			tty_insert_flip_char(tty, data[i], 0);
+		}
 		tty_flip_buffer_push(tty);
 	}
 

  reply	other threads:[~2001-05-11  5:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-10  0:52 USB broken in 2.4.4? Serial Ricochet works, USB performance sucks clameter
2001-05-10  3:32 ` Greg KH
2001-05-10  6:09   ` clameter
2001-05-10  5:24     ` Greg KH
2001-05-10  6:25       ` clameter
2001-05-10  5:38         ` Greg KH
2001-05-11  3:07         ` Drew Bertola
2001-05-11  4:39           ` Greg KH [this message]
2001-05-12  3:58           ` clameter
2001-05-10  3:46 ` Drew Bertola

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=20010510213930.A8483@kroah.com \
    --to=greg@kroah.com \
    --cc=clameter@lameter.com \
    --cc=drew@drewb.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.