diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-04-09 20:53:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-30 12:26:55 -0400 |
commit | 5604a98e2f95d6221852960a3363588f40d78e22 (patch) | |
tree | d9573557cf616e8751fbde45ee56d8280e3eebcf /drivers/tty/synclink.c | |
parent | e4d38f334ad24f80229a8ebab26950de8e8f34d7 (diff) |
tty: Replace ASYNC_CTS_FLOW bit and update atomically
Replace ASYNC_CTS_FLOW bit in the tty_port::flags field with
TTY_PORT_CTS_FLOW bit in the tty_port::iflags field. Add
tty_port_set_cts_flow() helper to abstract the atomic bit ops.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/synclink.c')
-rw-r--r-- | drivers/tty/synclink.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c index 3768e5c71c0b..0e4290183280 100644 --- a/drivers/tty/synclink.c +++ b/drivers/tty/synclink.c | |||
@@ -1966,11 +1966,8 @@ static void mgsl_change_params(struct mgsl_struct *info) | |||
1966 | } | 1966 | } |
1967 | info->timeout += HZ/50; /* Add .02 seconds of slop */ | 1967 | info->timeout += HZ/50; /* Add .02 seconds of slop */ |
1968 | 1968 | ||
1969 | if (cflag & CRTSCTS) | 1969 | tty_port_set_cts_flow(&info->port, cflag & CRTSCTS); |
1970 | info->port.flags |= ASYNC_CTS_FLOW; | 1970 | |
1971 | else | ||
1972 | info->port.flags &= ~ASYNC_CTS_FLOW; | ||
1973 | |||
1974 | if (cflag & CLOCAL) | 1971 | if (cflag & CLOCAL) |
1975 | info->port.flags &= ~ASYNC_CHECK_CD; | 1972 | info->port.flags &= ~ASYNC_CHECK_CD; |
1976 | else | 1973 | else |