mxser.c (4f2c0a4acffbec01079c28f839422e64ddeff004) mxser.c (515be7baeddb04d786e3a7f4072791087c25bb04)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * mxser.c -- MOXA Smartio/Industio family multiport serial driver.
4 *
5 * Copyright (C) 1999-2006 Moxa Technologies (support@moxa.com).
6 * Copyright (C) 2006-2008 Jiri Slaby <jirislaby@gmail.com>
7 *
8 * This code is loosely based on the 1.8 moxa driver which is based on

--- 1049 unchanged lines hidden (view full) ---

1058 if (old_speed != (port->flags & ASYNC_SPD_MASK)) {
1059 spin_lock_irqsave(&info->slock, sl_flags);
1060 mxser_change_speed(tty, NULL);
1061 spin_unlock_irqrestore(&info->slock, sl_flags);
1062 }
1063 } else {
1064 retval = mxser_activate(port, tty);
1065 if (retval == 0)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * mxser.c -- MOXA Smartio/Industio family multiport serial driver.
4 *
5 * Copyright (C) 1999-2006 Moxa Technologies (support@moxa.com).
6 * Copyright (C) 2006-2008 Jiri Slaby <jirislaby@gmail.com>
7 *
8 * This code is loosely based on the 1.8 moxa driver which is based on

--- 1049 unchanged lines hidden (view full) ---

1058 if (old_speed != (port->flags & ASYNC_SPD_MASK)) {
1059 spin_lock_irqsave(&info->slock, sl_flags);
1060 mxser_change_speed(tty, NULL);
1061 spin_unlock_irqrestore(&info->slock, sl_flags);
1062 }
1063 } else {
1064 retval = mxser_activate(port, tty);
1065 if (retval == 0)
1066 tty_port_set_initialized(port, 1);
1066 tty_port_set_initialized(port, true);
1067 }
1068 mutex_unlock(&port->mutex);
1069 return retval;
1070}
1071
1072/*
1073 * mxser_get_lsr_info - get line status register info
1074 *

--- 864 unchanged lines hidden ---
1067 }
1068 mutex_unlock(&port->mutex);
1069 return retval;
1070}
1071
1072/*
1073 * mxser_get_lsr_info - get line status register info
1074 *

--- 864 unchanged lines hidden ---