Re: [PATCH 4/4] serial: core: Mask mctrl with TIOCM_RTS too if rs485 on and RTS_AFTER_SEND set.

2018-06-06 Thread Giulio Benetti
Il 06/06/2018 14:03, Andy Shevchenko ha scritto: On Wed, 2018-06-06 at 11:49 +0200, Giulio Benetti wrote: If rs485 is enabled and RTS_AFTER_SEND is set on startup need to keep TIOCM_RTS asserted to keep rs485 transceiver in RX when idle. Check if rs485 is on and RTS_AFTER_SEND is set and mask

Re: [PATCH 4/4] serial: core: Mask mctrl with TIOCM_RTS too if rs485 on and RTS_AFTER_SEND set.

2018-06-06 Thread Giulio Benetti
Il 06/06/2018 14:03, Andy Shevchenko ha scritto: On Wed, 2018-06-06 at 11:49 +0200, Giulio Benetti wrote: If rs485 is enabled and RTS_AFTER_SEND is set on startup need to keep TIOCM_RTS asserted to keep rs485 transceiver in RX when idle. Check if rs485 is on and RTS_AFTER_SEND is set and mask

Re: [PATCH 4/4] serial: core: Mask mctrl with TIOCM_RTS too if rs485 on and RTS_AFTER_SEND set.

2018-06-06 Thread Andy Shevchenko
On Wed, 2018-06-06 at 11:49 +0200, Giulio Benetti wrote: > If rs485 is enabled and RTS_AFTER_SEND is set on startup need to keep > TIOCM_RTS asserted to keep rs485 transceiver in RX when idle. > > Check if rs485 is on and RTS_AFTER_SEND is set and mask port->mctrl > with > TIOCM_RTS too and not

Re: [PATCH 4/4] serial: core: Mask mctrl with TIOCM_RTS too if rs485 on and RTS_AFTER_SEND set.

2018-06-06 Thread Andy Shevchenko
On Wed, 2018-06-06 at 11:49 +0200, Giulio Benetti wrote: > If rs485 is enabled and RTS_AFTER_SEND is set on startup need to keep > TIOCM_RTS asserted to keep rs485 transceiver in RX when idle. > > Check if rs485 is on and RTS_AFTER_SEND is set and mask port->mctrl > with > TIOCM_RTS too and not

[PATCH 4/4] serial: core: Mask mctrl with TIOCM_RTS too if rs485 on and RTS_AFTER_SEND set.

2018-06-06 Thread Giulio Benetti
If rs485 is enabled and RTS_AFTER_SEND is set on startup need to keep TIOCM_RTS asserted to keep rs485 transceiver in RX when idle. Check if rs485 is on and RTS_AFTER_SEND is set and mask port->mctrl with TIOCM_RTS too and not only TIOCM_DTR. Signed-off-by: Giulio Benetti ---

[PATCH 4/4] serial: core: Mask mctrl with TIOCM_RTS too if rs485 on and RTS_AFTER_SEND set.

2018-06-06 Thread Giulio Benetti
If rs485 is enabled and RTS_AFTER_SEND is set on startup need to keep TIOCM_RTS asserted to keep rs485 transceiver in RX when idle. Check if rs485 is on and RTS_AFTER_SEND is set and mask port->mctrl with TIOCM_RTS too and not only TIOCM_DTR. Signed-off-by: Giulio Benetti ---