浏览代码

USB: cdc-acm tell tty layer not to split things up.

It ensures that the tty level do not split
the send buffer into 2KB blocks.


Signed-off-by: David Engraf <david.engraf@netcom.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
David Engraf 17 年之前
父节点
当前提交
28d1dfadd3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/usb/class/cdc-acm.c

+ 1 - 0
drivers/usb/class/cdc-acm.c

@@ -489,6 +489,7 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp)
 	else
 		rv = 0;
 
+	set_bit(TTY_NO_WRITE_SPLIT, &tty->flags);
 	tty->driver_data = acm;
 	acm->tty = tty;