Dear Sascha, I think these patches deliver simpler end result and are more complete than what you just posted. In particular, the serial: imx: set_mctrl(): correctly restore autoRTS state addresses exactly the issue your patch is about, but in a slightly simpler manner. The patches are not tested yet, so I've put RFC in the header. Just my 2 cents. I can obviously re-roll them on top of your work later, if required. Sergey Organov (7): serial: imx: fix locking in set_termios() serial: imx: set_termios(): factor-out 'ucr2' initial value serial: imx: set_termios(): clarify RTS/CTS bits calculation serial: imx: set_termios(): do not enable autoRTS if RTS is unset serial: imx: set_termios(): preserve RTS state serial: imx: set_mctrl(): correctly restore autoRTS state serial: imx: get rid of imx_uart_rts_auto() drivers/tty/serial/imx.c | 93 ++++++++++++++++++++++++------------------------ 1 file changed, 47 insertions(+), 46 deletions(-) -- 2.10.0.1.g57b01a3