]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: cdc-acm tell tty layer not to split things up.
authorDavid Engraf <david.engraf@netcom.eu>
Thu, 20 Mar 2008 09:53:52 +0000 (10:53 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:44 +0000 (21:16 -0700)
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>
drivers/usb/class/cdc-acm.c

index 0147ea39340e25d38107507e31e615428f7841e4..1ded83b66af0979c0f869db5e3c29c82e664c6ff 100644 (file)
@@ -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;