From 5ddde3485d84114181908e7664d3bdc71cf8acfe Mon Sep 17 00:00:00 2001 From: Marcel Hamer Date: Thu, 24 Sep 2020 20:03:19 +0200 Subject: [PATCH] Add missing TTY wakeup to rpmsg_tty The rpmgs_tty driver is missing the call to tty_port_tty_wakeup() after a successful writing of data. A line discipline that is configured for the RPMSG tty will as such never receive the write_wakeup call when space is available for further data. Signed-off-by: Marcel Hamer --- drivers/rpmsg/rpmsg_tty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rpmsg/rpmsg_tty.c b/drivers/rpmsg/rpmsg_tty.c index d1cccdff8ed1ed..f2518ac3486900 100644 --- a/drivers/rpmsg/rpmsg_tty.c +++ b/drivers/rpmsg/rpmsg_tty.c @@ -146,6 +146,8 @@ static int rpmsg_tty_write(struct tty_struct *tty, const unsigned char *buf, } } while (count > 0); + tty_port_tty_wakeup(cport->port); + return total; }