serial/pty: Initialize the terminal setting as a console

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie80a22b7a074d048435524d86f0ca7fc7a20e756
This commit is contained in:
Xiang Xiao 2021-06-11 06:28:55 -07:00 committed by Masayuki Ishikawa
parent 817d81d38f
commit 7ff6aac43a

View File

@ -1109,6 +1109,10 @@ int pty_register(int minor)
devpair->pp_master.pd_devpair = devpair;
devpair->pp_master.pd_master = true;
devpair->pp_slave.pd_devpair = devpair;
#ifdef CONFIG_SERIAL_TERMIOS
devpair->pp_slave.pd_iflag = ISIG;
devpair->pp_slave.pd_oflag = OPOST | ONLCR;
#endif
/* Create two pipes:
*