projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f300575
)
MLK-14498-13 tty: serial: imx: use tty_port_suspended() instead of ASYNC_SUSPENDED
author
Andy Duan
<fugang.duan@nxp.com>
Wed, 22 Mar 2017 08:40:09 +0000
(16:40 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:40 +0000
(15:21 -0500)
tty_port flag "ASYNC_SUSPENDED" has been discarded from kernel upgrade, then
use .tty_port_suspended() instead of the flag check.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
drivers/tty/serial/imx.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/imx.c
b/drivers/tty/serial/imx.c
index
9b20064
..
fe070db
100644
(file)
--- a/
drivers/tty/serial/imx.c
+++ b/
drivers/tty/serial/imx.c
@@
-1238,7
+1238,7
@@
static int imx_startup(struct uart_port *port)
unsigned long flags, temp;
/* some modem may need reset */
- if (!
(tty_port->flags & ASYNC_SUSPENDED
)) {
+ if (!
tty_port_suspended(tty_port
)) {
retval = device_reset(sport->port.dev);
if (retval && retval != -ENOENT)
return retval;