summaryrefslogtreecommitdiff
path: root/drivers/staging/fwserial
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-11-22 13:06:09 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-08 17:03:03 -0800
commit2ead3911e0910f19bf0d9c623ed73f70db8e0c24 (patch)
tree916d9684064bde66a2e325b2ce12718e7fcdead1 /drivers/staging/fwserial
parentc4a8dab5806188fb2a752467b63a7fd19bcbf0ec (diff)
staging/fwserial: Up the tty buffer limit to 128K
The firewire driver can overrun the tty buffers before the line discipline can throttle the input; up the buffer limit. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fwserial')
-rw-r--r--drivers/staging/fwserial/fwserial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c
index ed7806b8b1dc..656fdcbd845a 100644
--- a/drivers/staging/fwserial/fwserial.c
+++ b/drivers/staging/fwserial/fwserial.c
@@ -2225,6 +2225,7 @@ static int fwserial_create(struct fw_unit *unit)
port->index = FWTTY_INVALID_INDEX;
port->port.ops = &fwtty_port_ops;
port->serial = serial;
+ tty_buffer_set_limit(&port->port, 128 * 1024);
spin_lock_init(&port->lock);
INIT_DELAYED_WORK(&port->drain, fwtty_drain_tx);