summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndri Schmidt <scewodeveloper@gmail.com>2018-03-29 15:42:57 +0200
committerStefan Agner <stefan.agner@toradex.com>2018-04-03 15:58:53 +0200
commit4b41bb057041368e5b8c0c692fbb46572ddd1656 (patch)
tree768a27efb09c0be3b0592801f46dc9fd2d7df66b
parente08513e2a5b489b6780e5a9d96c6af87ea5212e5 (diff)
rpmsg: imx: Disable character echoing by default
Signed-off-by: Andri Schmidt <a.schmidt@scewo.ch> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--drivers/rpmsg/imx_rpmsg_tty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rpmsg/imx_rpmsg_tty.c b/drivers/rpmsg/imx_rpmsg_tty.c
index 47c0dd1..c7d34d2 100644
--- a/drivers/rpmsg/imx_rpmsg_tty.c
+++ b/drivers/rpmsg/imx_rpmsg_tty.c
@@ -167,6 +167,9 @@ static int rpmsg_tty_probe(struct rpmsg_channel *rpdev)
rpmsgtty_driver->type = TTY_DRIVER_TYPE_CONSOLE;
rpmsgtty_driver->init_termios = tty_std_termios;
+ /* set default to no chracter echoing of the tty driver */
+ rpmsgtty_driver->init_termios.c_lflag = rpmsgtty_driver->init_termios.c_lflag & ~ECHO;
+
tty_set_operations(rpmsgtty_driver, &imxrpmsgtty_ops);
tty_port_init(&cport->port);