Re: [PATCH 2/4] serial: 8250: Copy mctrl when register port.

2018-06-06 Thread Andy Shevchenko
On Wed, 2018-06-06 at 11:49 +0200, Giulio Benetti wrote: > RS485 can modify mctrl on startup, especially when RTS_AFTER_SEND is > on > TIOCM_RTS is set, then need to keep it set when registering port. > > Copy mctrl to new port too. > Not sure if it would be useful. Seems the only em485 user, i.

[PATCH 2/4] serial: 8250: Copy mctrl when register port.

2018-06-06 Thread Giulio Benetti
RS485 can modify mctrl on startup, especially when RTS_AFTER_SEND is on TIOCM_RTS is set, then need to keep it set when registering port. Copy mctrl to new port too. Signed-off-by: Giulio Benetti --- drivers/tty/serial/8250/8250_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers