mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-21 08:03:45 -04:00
serial: take termios_rwsem for ->rs485_config() & pass termios as param
To be able to alter ADDRB within ->rs485_config(), take termios_rwsem before calling ->rs485_config() and pass termios. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20220624204210.11112-5-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
79b3e69fa4
commit
ae50bb2752
@@ -85,7 +85,8 @@ void dw8250_do_set_termios(struct uart_port *p, struct ktermios *termios, struct
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dw8250_do_set_termios);
|
||||
|
||||
static int dw8250_rs485_config(struct uart_port *p, struct serial_rs485 *rs485)
|
||||
static int dw8250_rs485_config(struct uart_port *p, struct ktermios *termios,
|
||||
struct serial_rs485 *rs485)
|
||||
{
|
||||
u32 tcr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user