Commit 63a96095 authored by Joris van Rantwijk's avatar Joris van Rantwijk Committed by Greg Kroah-Hartman

USB: Fix throttling in generic usbserial driver

The generic usbserial driver in Linux 2.6.31 halts its receiving
channel in response to throttle requests from the line discipline.
Unfortunately it drops the contents of the first URB received after
throttling takes effect. This patch corrects that problem.
Signed-off-by: default avatarJoris van Rantwijk <jorispubl@xs4all.nl>
Acked-by: default avatarJohan Hovold <jhovold@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6f88139e
...@@ -546,7 +546,7 @@ void usb_serial_generic_unthrottle(struct tty_struct *tty) ...@@ -546,7 +546,7 @@ void usb_serial_generic_unthrottle(struct tty_struct *tty)
if (was_throttled) { if (was_throttled) {
/* Resume reading from device */ /* Resume reading from device */
usb_serial_generic_resubmit_read_urb(port, GFP_KERNEL); flush_and_resubmit_read_urb(port);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment