This makes the tty push data immediately to the ldisc when
flip_buffer_push is called instead of scheduling a delayed
workqueue. This fixes the dropped data problem.
Change-Id: I9558e3b4529653983ec9bf8af8ae7c8f8c25787f
Signed-off-by: Benoit Goby <benoit@android.com>
WARN_ON_ONCE(modem->port != port);
+ if (tty)
+ tty->low_latency = 1;
+
modem->tiocm_status = 0;
modem->opened = 1;
c = mdm6600_pass_to_tty(tty, u->transfer_buffer,
u->actual_length);
if (c != u->actual_length)
- pr_warn("%s: dropped %u of %u bytes\n",
- __func__, u->actual_length - c,
+ pr_warn("%s: port %d: dropped %u of %u bytes\n",
+ __func__, modem->number, u->actual_length - c,
u->actual_length);
tty_kref_put(tty);