author | Xindong Xu <xindong.xu@amlogic.com> | 2018-04-10 09:31:16 (GMT) |
---|---|---|
committer | Gerrit Code Review <gituser@droid04> | 2018-04-10 09:31:16 (GMT) |
commit | 9d73d1b9e6d6bec500ae56dfecb598b9c3a2261e (patch) | |
tree | f1b403d19cddea3efabf7ef8c9c01451152da59e | |
parent | 4c13565e7a8f643dd53f525027fdcc9418b02988 (diff) | |
parent | d9d62dbcc23e1f5a8772c8cd671d5c8277674c3a (diff) | |
download | common-9d73d1b9e6d6bec500ae56dfecb598b9c3a2261e.zip common-9d73d1b9e6d6bec500ae56dfecb598b9c3a2261e.tar.gz common-9d73d1b9e6d6bec500ae56dfecb598b9c3a2261e.tar.bz2 |
Merge "serial: core: mark port as initialized after successful IRQ change" 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 70ad5fe..839cee4 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -968,6 +968,8 @@ static int uart_set_info(struct tty_struct *tty, struct tty_port *port, } } else { retval = uart_startup(tty, state, 1); + if (retval == 0) + tty_port_set_initialized(port, true); if (retval > 0) retval = 0; } |