summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndri Schmidt <scewodeveloper@gmail.com>2018-03-29 15:42:57 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2018-06-21 09:28:22 +0200
commit3562e8d2b673fa9f9807c57ad33f743df0adbb65 (patch)
tree26002ff13b44f541324f84c3aaad1ca4176d08bb /drivers
parent90abbc46f25c0a0e2e59cc90d409f382426531f2 (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>
Diffstat (limited to 'drivers')
-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 22a2ff1b5338..ed64a6f0844c 100644
--- a/drivers/rpmsg/imx_rpmsg_tty.c
+++ b/drivers/rpmsg/imx_rpmsg_tty.c
@@ -170,6 +170,9 @@ static int rpmsg_tty_probe(struct rpmsg_device *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);