From: David Engraf Date: Thu, 20 Mar 2008 09:53:52 +0000 (+0100) Subject: USB: cdc-acm tell tty layer not to split things up. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28d1dfadd3ca07e7ec1c3de4f82ac2b8ece4be91;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 0147ea39340e..1ded83b66af0 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/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;