Skip to content

Commit 2c0f850

Browse files
marcel-hamerfourmone
authored andcommitted
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 <marcel@solidxs.nl> Change-Id: I51eb3c102a0adb9344115324ecff74e08e48918a
1 parent e1f1a97 commit 2c0f850

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/rpmsg/rpmsg_tty.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ static int rpmsg_tty_write(struct tty_struct *tty, const unsigned char *buf,
147147
}
148148
} while (count > 0);
149149

150+
tty_port_tty_wakeup(cport->port);
151+
150152
return total;
151153
}
152154

0 commit comments

Comments
 (0)