tty/serial: at91: RS485 mode: 0 is valid for delay_rts_after_send
authorNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 11 May 2015 11:00:31 +0000 (13:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:49:16 +0000 (12:49 -0700)
commit8687634b7908c42eb700e0469e110e02833611d1
tree1ec37190c252b116b636f2aee31f2843c2979279
parentfa8cd0f61fe17a8b202a23b68b2d0393c872372b
tty/serial: at91: RS485 mode: 0 is valid for delay_rts_after_send

In RS485 mode, we may want to set the delay_rts_after_send value to 0.
In the datasheet, the 0 value is said to "disable" the Transmitter Timeguard but
this is exactly the expected behavior if we want no delay...

Moreover, if the value was set to non-zero value by device-tree or earlier
ioctl command, it was impossible to change it back to zero.

Reported-by: Sami Pietikäinen <Sami.Pietikainen@wapice.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: stable@vger.kernel.org # 3.2+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c