author | Xindong Xu <xindong.xu@amlogic.com> | 2018-04-10 09:31:11 (GMT) |
---|---|---|
committer | Gerrit Code Review <gituser@droid04> | 2018-04-10 09:31:11 (GMT) |
commit | 4c13565e7a8f643dd53f525027fdcc9418b02988 (patch) | |
tree | 9daf53123c50022fd13d730304d07c96483340f6 | |
parent | c2b682e03065633a2b058cbb1e42a68dc7242d97 (diff) | |
parent | b42b8b8320047c27656caccc9f9ea2cc0bed88e5 (diff) | |
download | common-4c13565e7a8f643dd53f525027fdcc9418b02988.zip common-4c13565e7a8f643dd53f525027fdcc9418b02988.tar.gz common-4c13565e7a8f643dd53f525027fdcc9418b02988.tar.bz2 |
Merge "serial: core: mark port as initialized in autoconfig" into ampere-20180311
-rw-r--r-- | drivers/tty/serial/serial_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 2e2b88a..70ad5fe 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -1136,6 +1136,8 @@ static int uart_do_autoconfig(struct tty_struct *tty,struct uart_state *state) uport->ops->config_port(uport, flags); ret = uart_startup(tty, state, 1); + if (ret == 0) + tty_port_set_initialized(port, true); if (ret > 0) ret = 0; } |