projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aacef9c
)
USB: metro-usb: fix tty_flip_buffer_push use
author
Johan Hovold
<
[email protected]
>
Mon, 2 Jul 2012 10:34:24 +0000
(12:34 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 5 Jul 2012 23:04:57 +0000
(16:04 -0700)
Do not set low_latency flag at open as tty_flip_buffer_push must not be
called in IRQ context with low_latency set.
Cc:
[email protected]
Signed-off-by: Johan Hovold <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/serial/metro-usb.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/metro-usb.c
b/drivers/usb/serial/metro-usb.c
index 81423f7361dbe8f770086c3a03f6aca09b4beb2c..d47eb06fe463b51463cb899659a5f2428d5bd24b 100644
(file)
--- a/
drivers/usb/serial/metro-usb.c
+++ b/
drivers/usb/serial/metro-usb.c
@@
-222,14
+222,6
@@
static int metrousb_open(struct tty_struct *tty, struct usb_serial_port *port)
metro_priv->throttled = 0;
spin_unlock_irqrestore(&metro_priv->lock, flags);
- /*
- * Force low_latency on so that our tty_push actually forces the data
- * through, otherwise it is scheduled, and with high data rates (like
- * with OHCI) data can get lost.
- */
- if (tty)
- tty->low_latency = 1;
-
/* Clear the urb pipe. */
usb_clear_halt(serial->dev, port->interrupt_in_urb->pipe);